[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] int is not necessarily the same size as size_t
Update of /home2/or/cvsroot/tor/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/common
Modified Files:
torint.h
Log Message:
int is not necessarily the same size as size_t
Index: torint.h
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/torint.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- torint.h 2 Dec 2004 04:33:01 -0000 1.15
+++ torint.h 5 Dec 2004 11:58:30 -0000 1.16
@@ -233,7 +233,7 @@
#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 */