From fe82bf08d5d50eaa1ba5d8abd367686f5d0486dc Mon Sep 17 00:00:00 2001 From: gcasa Date: Sun, 8 May 2005 18:11:00 +0000 Subject: [PATCH] Corrected compilation problem on Solaris 9. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21200 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSPropertyList.m | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6ab0d8c58..b1d357cb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-08 14:11 Gregory John Casamento + + * Source/NSPropertyList.m: Corrected setup so that compilation + works on Solaris 9. + 2005-05-08 Richard Frith-Macdonald * Source/NSString.m: nul terminate properly when a returned 'C string' diff --git a/Source/NSPropertyList.m b/Source/NSPropertyList.m index 3bbc96caa..9fa071d3b 100644 --- a/Source/NSPropertyList.m +++ b/Source/NSPropertyList.m @@ -3055,7 +3055,11 @@ 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));