mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
fixup for signedness ... charValue always returns a signed char
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32777 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c078d97164
commit
94f95cd118
2 changed files with 3 additions and 3 deletions
|
@ -491,7 +491,7 @@ if (aValue >= -1 && aValue <= 12)\
|
|||
if (self != NSNumberClass)
|
||||
{
|
||||
return [[[self alloc] initWithBytes: (const void *)&aValue
|
||||
objCType: @encode(char)] autorelease];
|
||||
objCType: @encode(signed char)] autorelease];
|
||||
}
|
||||
return [self numberWithInt: aValue];
|
||||
}
|
||||
|
@ -679,7 +679,7 @@ if (aValue >= -1 && aValue <= 12)\
|
|||
switch (type[0])
|
||||
{
|
||||
case 'c':
|
||||
return [self initWithInteger: *(char *) value];
|
||||
return [self initWithInteger: *(signed char *) value];
|
||||
case 'C':
|
||||
return [self initWithInteger: *(unsigned char *) value];
|
||||
case 's':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue