gnucash master: Fix C++-style cast in a C file. Oops.
John Ralls
jralls at code.gnucash.org
Thu Dec 3 16:29:05 EST 2015
Updated via https://github.com/Gnucash/gnucash/commit/3a9825f8 (commit)
from https://github.com/Gnucash/gnucash/commit/9d4bc7f0 (commit)
commit 3a9825f8015f9b4ef844d89e810bf798008cfb30
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Dec 3 13:29:00 2015 -0800
Fix C++-style cast in a C file. Oops.
diff --git a/src/engine/gnc-pricedb.c b/src/engine/gnc-pricedb.c
index 75e23d0..64d2afa 100644
--- a/src/engine/gnc-pricedb.c
+++ b/src/engine/gnc-pricedb.c
@@ -104,7 +104,7 @@ gnc_price_init(GNCPrice* price)
* changes will affect backward data compatibility.
* The last two values, temporary and invalid, are *not* used.
*/
-static const char* source_names[static_cast<size_t>(PRICE_SOURCE_INVALID)] =
+static const char* source_names[(size_t)PRICE_SOURCE_INVALID + 1] =
{
/* sync with price_to_gui in dialog-price-editor.c */
"user:price-editor",
Summary of changes:
src/engine/gnc-pricedb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list