summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-05 11:58:30 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-05 11:58:30 +0000
commit50a314c93190aa200ac3c788e48c08e098233c17 (patch)
tree871dea53c09e1f0bf2088edd35c76c06e0f326e7
parentef6c9d18e799e5b02505ba73bbf36bfe92ce5a8b (diff)
downloadtor-50a314c93190aa200ac3c788e48c08e098233c17.tar.gz
tor-50a314c93190aa200ac3c788e48c08e098233c17.zip
int is not necessarily the same size as size_t
svn:r3079
-rw-r--r--src/common/torint.h2
1 files changed, 1 insertions, 1 deletions
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 */