Skip to content

Commit 7409edf

Browse files
committed
---
yaml --- r: 5845 b: refs/heads/master c: d9d0782 h: refs/heads/master i: 5843: b8ba0f3 v: v3
1 parent 71b9162 commit 7409edf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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: 3cabe7429f15c527006d7410046908c759d7ccc9
2+
refs/heads/master: d9d0782b5f782a72d895f103afc643e51e7f38ae

trunk/src/comp/middle/trans_alt.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,8 @@ fn compile_submatch(bcx: @block_ctxt, m: match, vals: [ValueRef], f: mk_fail,
473473
}
474474
lit(l) {
475475
kind = alt l.node {
476-
ast::lit_str(_) | ast::lit_nil. {
476+
ast::lit_str(_) | ast::lit_nil. | ast::lit_float(_) |
477+
ast::lit_mach_float(_, _) {
477478
test_val = Load(bcx, val); compare
478479
}
479480
_ { test_val = Load(bcx, val); switch }

0 commit comments

Comments
 (0)