scanf supports %lld since C++11, C99

This commit is contained in:
Richard Cohen
2023-03-02 12:32:44 +00:00
parent 7f1ce2b5e5
commit 80e9d9c35d
5 changed files with 3 additions and 36 deletions

View File

@@ -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;