Guarding agains big ints which are not implemented yet

This commit is contained in:
Krzosa Karol
2022-06-03 14:16:51 +02:00
parent c2f501bf36
commit 84b393ce2f
3 changed files with 6 additions and 4 deletions

View File

@@ -325,7 +325,8 @@ ast_float(Token *pos, F64 value){
}
function Ast_Atom *
ast_int(Token *pos, S64 integer){
ast_int(Token *pos, U64 integer){
assert(integer <= S64MAX);
AST_NEW(Atom, VALUE, pos, AST_EXPR | AST_ATOM);
result->type = untyped_int;
result->int_val = integer;