correct support for changing real to double (optional)

This commit is contained in:
Roberto Ierusalimschy
1997-07-31 16:37:37 -03:00
parent caa987faad
commit a7793468aa
2 changed files with 15 additions and 16 deletions

4
lex.c
View File

@@ -1,4 +1,4 @@
char *rcs_lex = "$Id: lex.c,v 3.7 1997/07/29 13:33:15 roberto Exp roberto $";
char *rcs_lex = "$Id: lex.c,v 3.8 1997/07/30 22:00:50 roberto Exp roberto $";
#include <ctype.h>
@@ -432,7 +432,7 @@ int luaY_lex (void)
ea*=ea;
}
}
luaY_lval.vFloat = a;
luaY_lval.vReal = a;
save(0);
return NUMBER;
}