Skip to content

Commit 2370c16

Browse files
lkupergraydon
authored andcommitted
---
yaml --- r: 1997 b: refs/heads/master c: 361ee5a h: refs/heads/master i: 1995: 42b9c16 v: v3
1 parent 7e0ea54 commit 2370c16

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: ba537fa5f5d7b816226871d0fffe2a9de4abd0ff
2+
refs/heads/master: 361ee5a68bf23c9fc65aee39618b5d1b0db4941b

trunk/src/comp/pretty/pprust.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,11 @@ impure fn print_literal(ps s, @ast.lit lit) {
379379
wrd(s.s, common.istr(val as int));
380380
wrd(s.s, common.ty_mach_to_str(mach));
381381
}
382+
case (ast.lit_mach_float(?mach,?val)) {
383+
// val is already a str
384+
wrd(s.s, val);
385+
wrd(s.s, common.ty_mach_to_str(mach));
386+
}
382387
case (ast.lit_nil) {wrd(s.s, "()");}
383388
case (ast.lit_bool(?val)) {
384389
if (val) {wrd(s.s, "true");} else {wrd(s.s, "false");}

0 commit comments

Comments
 (0)