aboutsummaryrefslogtreecommitdiff
path: root/gdb/bcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/bcache.c')
-rw-r--r--gdb/bcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/bcache.c b/gdb/bcache.c
index cadadb5..0bc533e 100644
--- a/gdb/bcache.c
+++ b/gdb/bcache.c
@@ -303,7 +303,7 @@ print_percentage (int portion, int total)
if (total == 0)
printf_filtered ("(not applicable)\n");
else
- printf_filtered ("%3d%%\n", portion * 100 / total);
+ printf_filtered ("%3d%%\n", (int) (portion * 100.0 / total));
}