From 49f2124df0f644e183f0570dd047493678eaf9f1 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 29 Jul 2018 10:22:17 +0100 Subject: Support larger integer literals to work with the new BigInt system --- src/exact_value.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/exact_value.cpp') diff --git a/src/exact_value.cpp b/src/exact_value.cpp index 4d455c8e2..30d4fd649 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -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) { -- cgit v1.2.3