]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
int is not necessarily the same size as size_t
authorRoger Dingledine <arma@torproject.org>
Sun, 5 Dec 2004 11:58:30 +0000 (11:58 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 5 Dec 2004 11:58:30 +0000 (11:58 +0000)
svn:r3079

src/common/torint.h

index 1973db0d816a56056df19de7923cd66b20d1829e..7bebb1009dc2215b3285510d462c675edbc9f715 100644 (file)
@@ -233,7 +233,7 @@ typedef uint32_t uintptr_t;
 #endif
 
 /* Any size_t larger than this amount is likely to be an underflow. */
-#define SIZE_T_CEILING (1u<<(sizeof(size_t)*8 - 1))
+#define SIZE_T_CEILING (sizeof(char)<<(sizeof(size_t)*8 - 1))
 
 #endif /* __TORINT_H */