diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-04-27 22:14:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-04-27 22:14:28 -0400 |
commit | 0130e7c9d2842ad58e1b84829aeab16a2efba3bb (patch) | |
tree | c85e068a47b3668c714d24d80b839ddf7bad6a97 /src/common/torint.h | |
parent | 7f85509a59b88173ac6060cd5925e28415f016b4 (diff) | |
parent | 43ffd023e9267927539dc9c12bee86199cd1c800 (diff) | |
download | tor-0130e7c9d2842ad58e1b84829aeab16a2efba3bb.tar.gz tor-0130e7c9d2842ad58e1b84829aeab16a2efba3bb.zip |
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Conflicts:
src/common/torint.h
Diffstat (limited to 'src/common/torint.h')
-rw-r--r-- | src/common/torint.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/torint.h b/src/common/torint.h index f5bebf8b9d..0b5c29adc0 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -329,8 +329,10 @@ typedef uint32_t uintptr_t; #endif #endif +/** Any ssize_t larger than this amount is likely to be an underflow. */ +#define SSIZE_T_CEILING ((ssize_t)(SSIZE_T_MAX-16)) /** Any size_t larger than this amount is likely to be an underflow. */ -#define SIZE_T_CEILING (SSIZE_T_MAX-16) +#define SIZE_T_CEILING ((size_t)(SSIZE_T_MAX-16)) #endif /* __TORINT_H */ |