parent
3cabe7429f
commit
d9d0782b5f
1 changed files with 2 additions and 1 deletions
|
|
@ -473,7 +473,8 @@ fn compile_submatch(bcx: @block_ctxt, m: match, vals: [ValueRef], f: mk_fail,
|
|||
}
|
||||
lit(l) {
|
||||
kind = alt l.node {
|
||||
ast::lit_str(_) | ast::lit_nil. {
|
||||
ast::lit_str(_) | ast::lit_nil. | ast::lit_float(_) |
|
||||
ast::lit_mach_float(_, _) {
|
||||
test_val = Load(bcx, val); compare
|
||||
}
|
||||
_ { test_val = Load(bcx, val); switch }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue