Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gas/config Merge from gnu/dist, rewrite:



details:   https://anonhg.NetBSD.org/src/rev/3f233561b831
branches:  trunk
changeset: 503203:3f233561b831
user:      tv <tv%NetBSD.org@localhost>
date:      Fri Feb 02 18:57:04 2001 +0000

description:
Merge from gnu/dist, rewrite:
On systems with signed "char", truncating (int)128 to (char) will result
in the value -128 (and so forth, through -1).  Instead, use the real values
0..255 correctly.

diffstat:

 gnu/dist/toolchain/gas/config/tc-m68k.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r cd38e5a642a3 -r 3f233561b831 gnu/dist/toolchain/gas/config/tc-m68k.c
--- a/gnu/dist/toolchain/gas/config/tc-m68k.c   Fri Feb 02 18:25:10 2001 +0000
+++ b/gnu/dist/toolchain/gas/config/tc-m68k.c   Fri Feb 02 18:57:04 2001 +0000
@@ -3704,7 +3704,6 @@
   register struct m68k_incant *hack, *slak;
   register const char *retval = 0;     /* empty string, or error msg text */
   register int i;
-  register char c;
 
   if (flag_mri)
     {
@@ -3800,7 +3799,7 @@
     }
 
   for (i = 0; i < (int) sizeof (mklower_table); i++)
-    mklower_table[i] = (isupper (c = (char) i)) ? tolower (c) : c;
+    mklower_table[i] = (isupper (i)) ? tolower (i) : i;
 
   for (i = 0; i < (int) sizeof (notend_table); i++)
     {



Home | Main Index | Thread Index | Old Index