Permalink
Browse files

The printf modifier for a double is just %f

  • Loading branch information...
1 parent 7b07d05 commit 527ac404a124a574321bdcc209fd4f30d05d7144 @rlerdorf rlerdorf committed Apr 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 .gdbinit
View
4 .gdbinit
@@ -106,7 +106,7 @@ define dump_bt
printf "%ld", $zvalue->value.lval
end
if $type == 2
- printf "%lf", $zvalue->value.dval
+ printf "%f", $zvalue->value.dval
end
if $type == 3
if $zvalue->value.lval
@@ -185,7 +185,7 @@ define ____printzv_contents
printf "long: %ld", $zvalue->value.lval
end
if $type == 2
- printf "double: %lf", $zvalue->value.dval
+ printf "double: %f", $zvalue->value.dval
end
if $type == 3
printf "bool: "

0 comments on commit 527ac40

Please sign in to comment.