* dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
[binutils-gdb.git] / gdb / bcache.c
index cadadb5cce63f575591bd5ac0ca32c39259c8b0a..0bc533ebfefc35058f27dab49774eda6f98290ca 100644 (file)
@@ -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));
 }