gdb: Force use of float version of log10
[deliverable/binutils-gdb.git] / gdb / maint.c
index 286ec31013571b661f166a4666c9bfee30318dad..1a621a17191f89e83805898accb356a5a4733163 100644 (file)
@@ -301,7 +301,7 @@ struct maint_print_section_data
       arg(arg)
   {
     int section_count = gdb_bfd_count_sections (abfd);
-    index_digits = ((int) log10 (section_count)) + 1;
+    index_digits = ((int) log10 ((float) section_count)) + 1;
   }
 
 private:
This page took 0.035282 seconds and 4 git commands to generate.