mirror of git://gcc.gnu.org/git/gcc.git
Explicitly specify the char arguments to __objc_code_char and __objc_code_char as being signed.
From-SVN: r26008
This commit is contained in:
parent
922cf99e6d
commit
56d654e4d7
|
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
|
||||||
|
|
||||||
|
* archive.c (__objc_code_char, __objc_write_char): Explicitly specify
|
||||||
|
the char as being signed (patch from Daniel Jacobowitz
|
||||||
|
<drow@false.org>).
|
||||||
|
|
||||||
Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
|
Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
|
||||||
|
|
||||||
* configure.in (AC_PREREQ): Update to 2.13.
|
* configure.in (AC_PREREQ): Update to 2.13.
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ objc_write_unsigned_char (struct objc_typed_stream* stream,
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline__ int
|
static __inline__ int
|
||||||
__objc_code_char (unsigned char* buf, char val)
|
__objc_code_char (unsigned char* buf, signed char val)
|
||||||
{
|
{
|
||||||
if (val >= 0)
|
if (val >= 0)
|
||||||
return __objc_code_unsigned_char (buf, val);
|
return __objc_code_unsigned_char (buf, val);
|
||||||
|
|
@ -104,7 +104,7 @@ __objc_code_char (unsigned char* buf, char val)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
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];
|
unsigned char buf[sizeof (char)+1];
|
||||||
int len = __objc_code_char (buf, value);
|
int len = __objc_code_char (buf, value);
|
||||||
|
|
@ -1000,7 +1000,7 @@ objc_write_type(TypedStream* stream, const char* type, const void* data)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case _C_CHR:
|
case _C_CHR:
|
||||||
return objc_write_char(stream, *(char*)data);
|
return objc_write_char(stream, *(signed char*)data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case _C_UCHR:
|
case _C_UCHR:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue