From 66b59f7b4d3f41d3f40013f187af545a0c000805 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sun, 8 May 2005 18:19:39 +0000 Subject: [PATCH] Improvement on previous commit. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21201 72102866-910b-0410-8b05-ffd578937521 --- Source/NSPropertyList.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/NSPropertyList.m b/Source/NSPropertyList.m index 9fa071d3b..2776b606d 100644 --- a/Source/NSPropertyList.m +++ b/Source/NSPropertyList.m @@ -47,6 +47,10 @@ #include "GSPrivate.h" extern BOOL GSScanDouble(unichar*, unsigned, double*); +#ifndef UINT_MAX +# define UINT_MAX 4294967295U +#endif + @class GSString; @class GSMutableString; @class GSMutableArray; @@ -3055,11 +3059,7 @@ GSPropertyListMake(id obj, NSDictionary *loc, BOOL xml, } else if (index_size == 4) { -#ifdef UINT_MAX table_size = UINT_MAX; -#else - table_size = 256 * 256 * 256 * 256; -#endif } table = malloc(table_size * sizeof(int));