rustsyntax: i64, not int

This commit is contained in:
Brian Anderson 2012-04-11 13:28:57 -07:00
parent f34eae8802
commit d65df5d4d4

View File

@ -706,7 +706,7 @@ fn maybe_parse_vstore(p: parser) -> option<ast::vstore> {
token::UNDERSCORE { token::UNDERSCORE {
p.bump(); some(ast::vstore_fixed(none)) p.bump(); some(ast::vstore_fixed(none))
} }
token::LIT_INT(i, ast::ty_i) if i >= 0 { token::LIT_INT(i, ast::ty_i) if i >= 0i64 {
p.bump(); some(ast::vstore_fixed(some(i as uint))) p.bump(); some(ast::vstore_fixed(some(i as uint)))
} }
token::BINOP(token::AND) { token::BINOP(token::AND) {