Improvement on previous commit.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21201 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-05-08 18:19:39 +00:00
parent 0249c23ea6
commit 66b59f7b4d

View file

@ -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));