Fix compilation on 32-bit. Fix for bug 6277, not in any released tor.

This commit is contained in:
Nick Mathewson 2012-07-05 16:44:07 -04:00
parent 7e8d7a017e
commit d30783ecbb

View File

@ -1643,7 +1643,7 @@ test_util_sscanf(void)
#endif
#if SIZEOF_LONG == 4
r = tor_sscanf("-2147483648. 2147483647.", "%ld. %ld.", &lng1, &lng2)
r = tor_sscanf("-2147483648. 2147483647.", "%ld. %ld.", &lng1, &lng2);
test_eq(r,2);
test_eq(lng1, -2147483647 - 1);
test_eq(lng2, 2147483647);