summaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index ff2bec865a8..4ec0853d70e 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -726,7 +726,7 @@ cp_print_class_member (valaddr, domain, stream, prefix)
fprintf_filtered (stream, " (offset in bits)");
}
else
- fprintf_filtered (stream, "%d", val >> 3);
+ fprintf_filtered (stream, "%ld", (long) (val >> 3));
}