(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:
mccallum 1995-03-23 03:49:15 +00:00
parent d20fb594c8
commit e059475db7

View file

@ -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];