Fix some cppcheck warnings.

This commit is contained in:
Dianne Skoll
2025-03-23 13:24:38 -04:00
parent f53a174d65
commit b9f09b9a2d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -261,7 +261,7 @@ json_value * json_parse_ex (json_settings * settings,
const json_char * end;
json_value * top, * root, * alloc = 0;
json_state state = { 0 };
long flags = 0;
long flags;
int num_digits = 0;
double num_e = 0, num_fraction = 0;
@@ -873,7 +873,7 @@ json_value * json_parse_ex (json_settings * settings,
goto e_failed;
}
top->u.dbl *= pow (10.0, (flags & flag_num_e_negative ? - num_e : num_e));
top->u.dbl *= pow (10.0, ((flags & flag_num_e_negative) ? - num_e : num_e));
}
if (flags & flag_num_negative)