Support larger integer literals to work with the new BigInt system

This commit is contained in:
gingerBill
2018-07-29 10:22:17 +01:00
parent a11d6e696a
commit 49f2124df0
3 changed files with 53 additions and 39 deletions

View File

@@ -135,9 +135,10 @@ ExactValue exact_value_procedure(Ast *node) {
}
ExactValue exact_value_integer_from_string(String string) {
u64 u = u64_from_string(string);
return exact_value_u64(u);
ExactValue exact_value_integer_from_string(String const &string) {
ExactValue result = {ExactValue_Integer};
big_int_from_string(&result.value_integer, string);
return result;
}
f64 float_from_string(String string) {