Skip to content

Commit 97637b6

Browse files
committed
fix int casting issue (copy paste error?)
1 parent b2b917f commit 97637b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/basic/src/basic_runtime_builtin_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ASTNodeData basic_fn_toint(BASICRuntime *runtime, ASTNode *arg)
8383
}
8484
ASTNodeData value = basic_evaluate_node(runtime, arg);
8585
int as_int = ast_data_to_int(value);
86-
value.token.literal.flt = as_int;
86+
value.token.literal.num = as_int;
8787
value.token_type = DTYPE_NUM;
8888
return value;
8989
}

0 commit comments

Comments
 (0)