Преглед изворни кода

int is not necessarily the same size as size_t

svn:r3079
Roger Dingledine пре 21 година
родитељ
комит
50a314c931
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/common/torint.h

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