From 5de93f2670728421f7af56fbbec331e490a270fa Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 12 Jul 2007 16:17:12 +0000 Subject: [PATCH] r13704@catbus: nickm | 2007-07-12 11:43:18 -0400 Backport r10566: build correctly when size_t is bigger than unsigned long svn:r10803 --- src/common/torint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/torint.h b/src/common/torint.h index 6cb43a3b3..1d0a40560 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -292,9 +292,9 @@ typedef uint32_t uintptr_t; #ifndef SIZE_T_MAX #if (SIZEOF_SIZE_T == 4) -#define SIZE_T_MAX 0xfffffffful +#define SIZE_T_MAX UINT32_MAX #elif (SIZEOF_SIZE_T == 8) -#define SIZE_T_MAX 0xfffffffffffffffful +#define SIZE_T_MAX UINT64_MAX #else #error "Can't define SIZE_T_MAX" #endif