mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
20f4a7d773
commit
93dd8e8f57
1 changed files with 4 additions and 0 deletions
|
@ -363,7 +363,11 @@ static BOOL useSmallRepeatingDouble;
|
|||
@implementation NSSmallInt
|
||||
#undef VALUE
|
||||
#define VALUE (((intptr_t)self) >> OBJC_SMALL_OBJECT_SHIFT)
|
||||
#if OBJC_SMALL_OBJECT_SHIFT == 1
|
||||
#define FORMAT @"%d"
|
||||
#else
|
||||
#define FORMAT @"%lld"
|
||||
#endif
|
||||
#include "NSNumberMethods.h"
|
||||
|
||||
+ (void) load
|
||||
|
|
Loading…
Reference in a new issue