mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Fix small int -> string conversion on 64-bit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34229 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c2b15d75dd
commit
d24a7d619c
1 changed files with 4 additions and 0 deletions
|
@ -363,7 +363,11 @@ static BOOL useSmallRepeatingDouble;
|
||||||
@implementation NSSmallInt
|
@implementation NSSmallInt
|
||||||
#undef VALUE
|
#undef VALUE
|
||||||
#define VALUE (((intptr_t)self) >> OBJC_SMALL_OBJECT_SHIFT)
|
#define VALUE (((intptr_t)self) >> OBJC_SMALL_OBJECT_SHIFT)
|
||||||
|
#if OBJC_SMALL_OBJECT_SHIFT == 1
|
||||||
#define FORMAT @"%d"
|
#define FORMAT @"%d"
|
||||||
|
#else
|
||||||
|
#define FORMAT @"%lld"
|
||||||
|
#endif
|
||||||
#include "NSNumberMethods.h"
|
#include "NSNumberMethods.h"
|
||||||
|
|
||||||
+ (void) load
|
+ (void) load
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue