summaryrefslogtreecommitdiff
path: root/src/json/json_helper.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-09 13:26:34 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-09 13:26:34 +0200
commita5fedfeeb88a7a9b8f13aeb49eb43a68a4d7582c (patch)
treedb5400b7d2009df84bc55c6f15288420ba7a8672 /src/json/json_helper.c
parent783642272d83fae148edfd308c86b157c3e4a6d4 (diff)
downloadexchange-a5fedfeeb88a7a9b8f13aeb49eb43a68a4d7582c.tar.gz
exchange-a5fedfeeb88a7a9b8f13aeb49eb43a68a4d7582c.tar.bz2
exchange-a5fedfeeb88a7a9b8f13aeb49eb43a68a4d7582c.zip
remove redundant check
Diffstat (limited to 'src/json/json_helper.c')
-rw-r--r--src/json/json_helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index 1d2a3315..aea19ac3 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -186,8 +186,7 @@ parse_amount_nbo (void *cls,
}
if ( (value < 0) ||
(fraction < 0) ||
- (value > UINT64_MAX) ||
- (fraction > UINT32_MAX) )
+ (fraction > (json_int_t) UINT32_MAX) )
{
GNUNET_break_op (0);
return GNUNET_SYSERR;