From 45b435a34283e328f178212854a94fa15dd12f3c Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 23 Jun 2022 13:33:44 -0400 Subject: [PATCH] Ensure bignum sign field is initialized Stil have a bigger question of how to set it properly when doing bignum subtraction. But this avoids any downstream issues. --- runtime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime.c b/runtime.c index f4ba8757..2841beb5 100644 --- a/runtime.c +++ b/runtime.c @@ -3209,6 +3209,7 @@ object bignum_minus_unsigned(void *data, object x, object y) break; } res = gc_alloc_bignum2(data, size); + C_bignum_sign(res) = 0; // JAE TODO: this initializes sign, but how to we properly set sign when doing bignum subtraction? scan_r = C_bignum_digits(res); end_r = scan_r + C_bignum_size(res);