aboutsummaryrefslogtreecommitdiff
path: root/src/exact_value.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-07-29 10:22:17 +0100
committergingerBill <bill@gingerbill.org>2018-07-29 10:22:17 +0100
commit49f2124df0f644e183f0570dd047493678eaf9f1 (patch)
treeb08bccc4ca8705fdb7b3e7ba0915d291cac41952 /src/exact_value.cpp
parenta11d6e696a6c0b3c0e3147ee3f8dae2968ae2352 (diff)
Support larger integer literals to work with the new BigInt system
Diffstat (limited to 'src/exact_value.cpp')
-rw-r--r--src/exact_value.cpp7
1 files changed, 4 insertions, 3 deletions
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) {