[or-cvs] int is not necessarily the same size as size_t

Roger Dingledine arma at seul.org
Sun Dec 5 11:58:32 UTC 2004


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 */
 



More information about the tor-commits mailing list