Fix printing of Wide_Character & Wide_Wide_Character entities.
[deliverable/binutils-gdb.git] / gdb / c-valprint.c
index 0c23c7e1ecab4cc335b9315b2db76af723c6eaa4..c6d3eae0569fb9a704bb4350e749ca3ca544e048 100644 (file)
@@ -536,9 +536,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
          if (c_textual_element_type (unresolved_type, options->format))
            {
              fputs_filtered (" ", stream);
-             LA_PRINT_CHAR ((unsigned char) unpack_long (type,
-                                                         valaddr
-                                                         + embedded_offset),
+             LA_PRINT_CHAR (unpack_long (type, valaddr + embedded_offset),
                             unresolved_type, stream);
            }
        }
@@ -561,7 +559,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
          else
            fprintf_filtered (stream, "%d", (int) val);
          fputs_filtered (" ", stream);
-         LA_PRINT_CHAR ((unsigned char) val, unresolved_type, stream);
+         LA_PRINT_CHAR (val, unresolved_type, stream);
        }
       break;
 
This page took 0.023937 seconds and 4 git commands to generate.