diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-11 16:18:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-11 16:18:30 +0100 |
| commit | 63b572a0abd9fb3b64b4b70b3f94dbafb4642f57 (patch) | |
| tree | a89b2a7da5d31279ffc47406874839ac3f868bce /src/check_type.cpp | |
| parent | e90e7d4af985b0b19e23f87e45b9add5aab98f69 (diff) | |
Clean up big int to LLVM integer code
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index e8000d66c..4b4df4f3a 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1998,7 +1998,7 @@ i64 check_array_count(CheckerContext *ctx, Operand *o, Ast *e) { if (is_type_untyped(type) || is_type_integer(type)) { if (o->value.kind == ExactValue_Integer) { BigInt count = o->value.value_integer; - if (o->value.value_integer.sign) { + if (big_int_is_neg(&o->value.value_integer)) { gbAllocator a = heap_allocator(); String str = big_int_to_string(a, &count); error(e, "Invalid negative array count, %.*s", LIT(str)); |