]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r13362@catbus: nickm | 2007-06-11 19:00:23 -0400
authorNick Mathewson <nickm@torproject.org>
Mon, 11 Jun 2007 23:00:26 +0000 (23:00 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 11 Jun 2007 23:00:26 +0000 (23:00 +0000)
 Fix a warning on platforms where sizeof(size_t)==8, but sizeof(unsigned long)<8.

svn:r10566

src/common/torint.h

index 6cb43a3b335079b987e65754138441cf851d101a..1d0a40560bb10deaf728580b6b9a15ff6e89cd81 100644 (file)
@@ -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