aboutsummaryrefslogtreecommitdiff
path: root/src/common/torint.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-06-11 23:00:26 +0000
committerNick Mathewson <nickm@torproject.org>2007-06-11 23:00:26 +0000
commit399890307d561c4c60fe91c136f68d46ade1c1ed (patch)
tree07aa83336b27b9c1fe055f39ad79e9bac5f7e815 /src/common/torint.h
parentdddf065e6266a396093009c441d4c115571a5363 (diff)
downloadtor-399890307d561c4c60fe91c136f68d46ade1c1ed.tar
tor-399890307d561c4c60fe91c136f68d46ade1c1ed.tar.gz
r13362@catbus: nickm | 2007-06-11 19:00:23 -0400
Fix a warning on platforms where sizeof(size_t)==8, but sizeof(unsigned long)<8. svn:r10566
Diffstat (limited to 'src/common/torint.h')
-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 6cb43a3b3..1d0a40560 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