diff options
author | ovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-26 23:44:04 +0000 |
---|---|---|
committer | ovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-26 23:44:04 +0000 |
commit | 70565d414696b34bb138bac734d4b3087a96a15f (patch) | |
tree | 0e1dcb61f05a44b29ecbee34aa27c6917dac1ef5 /libobjc/archive.c | |
parent | 28c11b396e7bb2aafae0e75d72a553d38f0a50a7 (diff) | |
download | gcc-70565d414696b34bb138bac734d4b3087a96a15f.tar.gz |
Explicitly specify the char arguments to __objc_code_char and __objc_code_char as being signed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26008 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/archive.c')
-rw-r--r-- | libobjc/archive.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libobjc/archive.c b/libobjc/archive.c index 626f6bafea3..10106c1145e 100644 --- a/libobjc/archive.c +++ b/libobjc/archive.c @@ -91,7 +91,7 @@ objc_write_unsigned_char (struct objc_typed_stream* stream, } static __inline__ int -__objc_code_char (unsigned char* buf, char val) +__objc_code_char (unsigned char* buf, signed char val) { if (val >= 0) return __objc_code_unsigned_char (buf, val); @@ -104,7 +104,7 @@ __objc_code_char (unsigned char* buf, char val) } int -objc_write_char (struct objc_typed_stream* stream, char value) +objc_write_char (struct objc_typed_stream* stream, signed char value) { unsigned char buf[sizeof (char)+1]; int len = __objc_code_char (buf, value); @@ -1000,7 +1000,7 @@ objc_write_type(TypedStream* stream, const char* type, const void* data) break; case _C_CHR: - return objc_write_char(stream, *(char*)data); + return objc_write_char(stream, *(signed char*)data); break; case _C_UCHR: |