From 45521a7f766a044dfd75f79b79a775791ba5b483 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 12 May 2017 06:09:45 -0700 Subject: ffi: bugfix: broken i64 conversion. * itypes.c (c_i64): Fix c_num being called on the function pointer num rather than the correct operand n. --- itypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itypes.c b/itypes.c index e68f3c14..0fbfd351 100644 --- a/itypes.c +++ b/itypes.c @@ -101,7 +101,7 @@ u32_t c_u32(val n, val self) #if SIZEOF_PTR == 8 i64_t c_i64(val n, val self) { - cnum v = c_num(num); + cnum v = c_num(n); if (v < (cnum) -0x8000000000000000 || v > (cnum) 0x7FFFFFFFFFFFFFFF) uw_throwf(error_s, lit("~a: value ~s is out of signed 64 bit range"), self, n, nao); -- cgit v1.2.3