mips16e-extends.c (cksum8): Change return value to signed char.

* gcc.target/mips/mips16e-extends.c (cksum8): Change return
	value to signed char.

From-SVN: r124157
This commit is contained in:
Thiemo Seufer 2007-04-25 16:10:15 +00:00 committed by Thiemo Seufer
parent c4da1827ac
commit 4b5f13f327
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-04-25 Thiemo Seufer <ths@mips.com>
* gcc.target/mips/mips16e-extends.c (cksum8): Change return
value to signed char.
2007-04-25 Uros Bizjak <ubizjak@gmail.com> 2007-04-25 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/reload-1.c. Include <stdint.h>. Compile for all * gcc.target/i386/reload-1.c. Include <stdint.h>. Compile for all

View File

@ -8,7 +8,7 @@ short cksum16 (unsigned long n)
return l; return l;
} }
char cksum8 (unsigned long n) signed char cksum8 (unsigned long n)
{ {
unsigned long l; unsigned long l;
l = validate (n, (n >> 8) + (n & 0xff)); l = validate (n, (n >> 8) + (n & 0xff));