diff options
author | Pierre Muller <muller@sourceware.org> | 2010-04-16 08:12:59 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-04-16 08:12:59 +0000 |
commit | 9b79b476a6a6c5776a5676c137bd7d64df4d738b (patch) | |
tree | 66add1959416150432c6a90e206650ffe665cbb5 /gdb/p-lang.c | |
parent | 711e434b390a0b953862435eb81f3b89e720b030 (diff) | |
download | gdb-9b79b476a6a6c5776a5676c137bd7d64df4d738b.zip gdb-9b79b476a6a6c5776a5676c137bd7d64df4d738b.tar.gz gdb-9b79b476a6a6c5776a5676c137bd7d64df4d738b.tar.bz2 |
* p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
Diffstat (limited to 'gdb/p-lang.c')
-rw-r--r-- | gdb/p-lang.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/p-lang.c b/gdb/p-lang.c index 415cd99..44aefa4 100644 --- a/gdb/p-lang.c +++ b/gdb/p-lang.c @@ -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); |