mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
add workaround for buggy solaris systems
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30887 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
409e5df259
commit
4343741323
2 changed files with 11 additions and 5 deletions
|
@ -1,17 +1,19 @@
|
|||
<<<<<<< .mine
|
||||
2010-06-29 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSKeyedUnarchiver.m: Workaround for buggy inttypes.h on older
|
||||
Solaris systems.
|
||||
|
||||
2010-06-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSSet.m: Fix incorrect return value in NSMutableSet's
|
||||
-classForCoder method.
|
||||
|
||||
=======
|
||||
2010-06-28 Quentin Mathe <quentin.mathe@gmail.com>
|
||||
|
||||
* Tools/autogsdoc.m: Improved to search for .m files among the
|
||||
command-line arguments in addition to the current directory and
|
||||
documentation directory.
|
||||
|
||||
>>>>>>> .r30877
|
||||
2010-06-26 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSObject.m: Remove the Object(NSObjectCompat) category as the
|
||||
|
|
|
@ -509,8 +509,12 @@ static NSMapTable *globalClassMap = 0;
|
|||
{
|
||||
int64_t i = [self decodeInt64ForKey: aKey];
|
||||
|
||||
#if (INTPTR_MAX < INT64_MAX)
|
||||
if (i > INTPTR_MAX || i < INTPTR_MIN)
|
||||
/* Older Solaris systems define INTPTR_MAX incorrectly ... so we use the
|
||||
* void pointer size we determined at configure time to decide whether
|
||||
* we need to check for overflow.
|
||||
*/
|
||||
#if (GS_SIZEOF_VOIDP < 8)
|
||||
if (i > INT32_MAX || i < INT32_MIN)
|
||||
{
|
||||
[NSException raise: NSRangeException
|
||||
format: @"[%@ +%@]: value for key(%@) is out of range",
|
||||
|
|
Loading…
Reference in a new issue