summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-07-12 16:17:12 +0000
committerNick Mathewson <nickm@torproject.org>2007-07-12 16:17:12 +0000
commit5de93f2670728421f7af56fbbec331e490a270fa (patch)
tree57835d3e978b4fd8d1aee3f0e61366ba550073f3
parent12a873accec1daf60b8ccfa4a791a9f1cba5713c (diff)
downloadtor-5de93f2670728421f7af56fbbec331e490a270fa.tar.gz
tor-5de93f2670728421f7af56fbbec331e490a270fa.zip
r13704@catbus: nickm | 2007-07-12 11:43:18 -0400
Backport r10566: build correctly when size_t is bigger than unsigned long svn:r10803
-rw-r--r--src/common/torint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/torint.h b/src/common/torint.h
index 6cb43a3b33..1d0a40560b 100644
--- a/src/common/torint.h
+++ b/src/common/torint.h
@@ -292,9 +292,9 @@ typedef uint32_t uintptr_t;
#ifndef SIZE_T_MAX
#if (SIZEOF_SIZE_T == 4)
-#define SIZE_T_MAX 0xfffffffful
+#define SIZE_T_MAX UINT32_MAX
#elif (SIZEOF_SIZE_T == 8)
-#define SIZE_T_MAX 0xfffffffffffffffful
+#define SIZE_T_MAX UINT64_MAX
#else
#error "Can't define SIZE_T_MAX"
#endif