Fix portability of [un]signed char encodings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9921 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-05-11 15:23:24 +00:00
parent ee7eb89ab9
commit ab97cd08af
9 changed files with 41 additions and 13 deletions

View file

@ -255,7 +255,7 @@
const char *objctype = @encode(TYPE_NAME);
unsigned size = strlen(objctype)+1;
[coder encodeValueOfObjCType: @encode(unsigned) at: &size];
[coder encodeArrayOfObjCType: @encode(char) count: size at: objctype];
[coder encodeArrayOfObjCType: @encode(signed char) count: size at: objctype];
[coder encodeValueOfObjCType: @encode(TYPE_NAME) at: &data];
#endif
}