mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(encodeValueOfSimpleType:at:withName:): Use #ifndef __CHAR_UNSIGNED__
to prevent compiler warning. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@186 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d20fb594c8
commit
e059475db7
1 changed files with 2 additions and 0 deletions
|
@ -105,9 +105,11 @@ static BOOL debug_binary_coder = NO;
|
|||
}
|
||||
|
||||
case _C_CHR:
|
||||
#ifndef __CHAR_UNSIGNED__
|
||||
if (*(char*)d < 0)
|
||||
[stream writeByte:1];
|
||||
else
|
||||
#endif
|
||||
[stream writeByte:0];
|
||||
case _C_UCHR:
|
||||
[stream writeByte:*(unsigned char*)d];
|
||||
|
|
Loading…
Reference in a new issue