Browse files

Fix typo that prevents parsing of large integer values.

For unsigned long we should use ULLONG_MAX; not ULONG_MAX. If we're
using ULONG_MAX, we fail to parse back values larger than 2^32 on i386.
  • Loading branch information...
1 parent 5119de1 commit 93f9c5fcdf975563c34f0d972fca9b5d16597dac @EdSchouten EdSchouten committed Aug 17, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/include/argdata.h
@@ -121,7 +121,7 @@ _ARGDATA_INT_U(unsigned int, uint, _UINT_MAX)
_ARGDATA_INT_U(unsigned long, ulong, _ULONG_MAX)
_ARGDATA_INT_S(long long, llong, _LLONG_MIN, _LLONG_MAX)
-_ARGDATA_INT_U(unsigned long long, ullong, _ULONG_MAX)
+_ARGDATA_INT_U(unsigned long long, ullong, _ULLONG_MAX)

0 comments on commit 93f9c5f

Please sign in to comment.