From 50a314c93190aa200ac3c788e48c08e098233c17 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 5 Dec 2004 11:58:30 +0000 Subject: [PATCH] int is not necessarily the same size as size_t svn:r3079 --- src/common/torint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/torint.h b/src/common/torint.h index 1973db0d81..7bebb1009d 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -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 */