mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
scanf supports %lld since C++11, C99
This commit is contained in:
@@ -1935,7 +1935,7 @@ xaccParseAmountInternal (const char * in_str, gboolean monetary,
|
||||
{
|
||||
*out = '\0';
|
||||
|
||||
if (*out_str && sscanf(out_str, QOF_SCANF_LLD, &numer) < 1)
|
||||
if (*out_str && sscanf(out_str, "%lld", &numer) < 1)
|
||||
next_state = NO_NUM_ST;
|
||||
else if (next_state == FRAC_ST)
|
||||
{
|
||||
@@ -1977,7 +1977,7 @@ xaccParseAmountInternal (const char * in_str, gboolean monetary,
|
||||
}
|
||||
|
||||
long long int fraction;
|
||||
if (sscanf (out_str, QOF_SCANF_LLD, &fraction) < 1)
|
||||
if (sscanf (out_str, "%lld", &fraction) < 1)
|
||||
{
|
||||
g_free(out_str);
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user