[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r10803: Backport r10566: build correctly when size_t is bigger than (in tor/branches/tor-0_1_2-patches: . src/common)



Author: nickm
Date: 2007-07-12 12:17:12 -0400 (Thu, 12 Jul 2007)
New Revision: 10803

Modified:
   tor/branches/tor-0_1_2-patches/
   tor/branches/tor-0_1_2-patches/src/common/torint.h
Log:
 r13704@catbus:  nickm | 2007-07-12 11:43:18 -0400
 Backport r10566: build correctly when size_t is bigger than unsigned long



Property changes on: tor/branches/tor-0_1_2-patches
___________________________________________________________________
 svk:merge ticket from /tor/012 [r13704] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/branches/tor-0_1_2-patches/src/common/torint.h
===================================================================
--- tor/branches/tor-0_1_2-patches/src/common/torint.h	2007-07-12 16:17:09 UTC (rev 10802)
+++ tor/branches/tor-0_1_2-patches/src/common/torint.h	2007-07-12 16:17:12 UTC (rev 10803)
@@ -292,9 +292,9 @@
 
 #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