summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-12-13 18:40:15 -0500
committerNick Mathewson <nickm@torproject.org>2010-12-13 18:40:15 -0500
commit649ee99846966c87350cd3282639326f8b4ee4af (patch)
treeec638cf7c5126665a6215159cc2e5579b0400627
parent78df6404eb8d28843c7943341a4d4602c6f8d2bb (diff)
downloadtor-649ee99846966c87350cd3282639326f8b4ee4af.tar.gz
tor-649ee99846966c87350cd3282639326f8b4ee4af.zip
Base SIZE_T_CEILING on SSIZE_T_MAX.
-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 d9722868d2..665b0b4c71 100644
--- a/src/common/torint.h
+++ b/src/common/torint.h
@@ -331,7 +331,7 @@ typedef uint32_t uintptr_t;
#endif
/* Any size_t larger than this amount is likely to be an underflow. */
-#define SIZE_T_CEILING (sizeof(char)<<(sizeof(size_t)*8 - 1))
+#define SIZE_T_CEILING (SSIZE_T_MAX-16)
#endif /* __TORINT_H */