* p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
authorPierre Muller <muller@sourceware.org>
Fri, 16 Apr 2010 08:12:59 +0000 (08:12 +0000)
committerPierre Muller <muller@sourceware.org>
Fri, 16 Apr 2010 08:12:59 +0000 (08:12 +0000)
gdb/ChangeLog
gdb/p-lang.c

index b424c7def6b3f9a12b4cd8f4106d2c8e3f6b6639..c6465a01271fa7153842d24ef83ba6ed5a7fcd6b 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
+
 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
 
        Support for Windows OS Thread Information Block.
index 415cd9945667e273dd36753c36a58a7b82080a9a..44aefa4a112849533d6df7f474054d6c50c78801 100644 (file)
@@ -158,9 +158,7 @@ static void
 pascal_one_char (int c, struct ui_file *stream, int *in_quotes)
 {
 
-  c &= 0xFF;                   /* Avoid sign bit follies */
-
-  if ((c == '\'') || (PRINT_LITERAL_FORM (c)))
+  if (c == '\'' || ((unsigned int) c <= 0xff && (PRINT_LITERAL_FORM (c))))
     {
       if (!(*in_quotes))
        fputs_filtered ("'", stream);
This page took 0.037668 seconds and 4 git commands to generate.