fix(frontends/lean/parser): bug in parse_double

This commit is contained in:
Leonardo de Moura 2015-10-14 21:01:22 -07:00
parent ee347772d7
commit b7e79dea29

View file

@ -696,7 +696,9 @@ unsigned parser::parse_small_nat() {
double parser::parse_double() {
if (curr() != scanner::token_kind::Decimal)
throw parser_error("decimal value expected", pos());
return get_num_val().get_double();
double r =get_num_val().get_double();
next();
return r;
}
static level lift(level l, unsigned k) {