summaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-09-05 11:23:24 +0200
committerChristian Grothoff <christian@grothoff.org>2019-09-05 11:23:24 +0200
commit5fa4a0e7e1c40bb07e28edc98ca2072ae7fcfacf (patch)
treefe075268a0b8ddb889ff198dd681a11c4effd94b /src/json
parentb9dee3a1d54637a8c8d0e3ef34bd6b8bfd0d1bac (diff)
downloadexchange-5fa4a0e7e1c40bb07e28edc98ca2072ae7fcfacf.tar.gz
exchange-5fa4a0e7e1c40bb07e28edc98ca2072ae7fcfacf.tar.bz2
exchange-5fa4a0e7e1c40bb07e28edc98ca2072ae7fcfacf.zip
fix warnings
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json_helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index b915faba..9e601ccd 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -83,6 +83,7 @@ parse_amount (void *cls,
json_int_t fraction;
const char *currency;
+ (void) cls;
if (json_is_string (root))
{
if (GNUNET_OK !=
@@ -122,7 +123,7 @@ parse_amount (void *cls,
}
if ( (value < 0) ||
(fraction < 0) ||
- (value > UINT64_MAX) ||
+ (((uint64_t) value) > UINT64_MAX) ||
(fraction > UINT32_MAX) )
{
GNUNET_break_op (0);
@@ -183,6 +184,7 @@ parse_amount_nbo (void *cls,
json_int_t fraction;
const char *currency;
+ (void) cls;
if (json_is_string (root))
{
if (GNUNET_OK !=