diff options
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r-- | gdb/c-typeprint.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index ed16fc3b8d2..2564ebcf00e 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -1437,13 +1437,14 @@ c_type_print_base (struct type *type, struct ui_file *stream, TYPE_FIELD_NAME (type, i), stream, show, level + 4, &local_flags); - fprintf_filtered (stream, " @%d", - TYPE_FIELD_BITPOS (type, i)); + fprintf_filtered (stream, " @%s", + plongest (TYPE_FIELD_BITPOS (type, i))); if (TYPE_FIELD_BITSIZE (type, i) > 1) { - fprintf_filtered (stream, "-%d", - TYPE_FIELD_BITPOS (type, i) - + TYPE_FIELD_BITSIZE (type, i) - 1); + fprintf_filtered (stream, "-%s", + plongest (TYPE_FIELD_BITPOS (type, i) + + TYPE_FIELD_BITSIZE (type, i) + - 1)); } fprintf_filtered (stream, ";\n"); } |