[or-cvs] r10566: Fix a warning on platforms where sizeof(size_t)==8, but size (in tor/trunk: . src/common)

nickm at seul.org nickm at seul.org
Mon Jun 11 23:00:27 UTC 2007


Author: nickm
Date: 2007-06-11 19:00:26 -0400 (Mon, 11 Jun 2007)
New Revision: 10566

Modified:
   tor/trunk/
   tor/trunk/src/common/torint.h
Log:
 r13362 at catbus:  nickm | 2007-06-11 19:00:23 -0400
 Fix a warning on platforms where sizeof(size_t)==8, but sizeof(unsigned long)<8.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r13362] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/common/torint.h
===================================================================
--- tor/trunk/src/common/torint.h	2007-06-11 22:46:35 UTC (rev 10565)
+++ tor/trunk/src/common/torint.h	2007-06-11 23:00:26 UTC (rev 10566)
@@ -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



More information about the tor-commits mailing list