From ecb8af658bc936cf0b9af28900aa4ed511c8c6cf Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 25 Sep 2021 14:52:35 +0300 Subject: [PATCH] =?UTF-8?q?fix=20squeezing=20of=20=C2=AF2147483648?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/stuff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/stuff.c b/src/core/stuff.c index 1ecf675f..71b5c578 100644 --- a/src/core/stuff.c +++ b/src/core/stuff.c @@ -512,9 +512,9 @@ B num_squeeze(B x) { or|= c<0?-c:c; } r_or: - if (or<=I8_MAX ) goto r_i8; - else if (or<=I16_MAX) goto r_i16; - else goto r_i32; + if (or>=0 && or<=I8_MAX ) goto r_i8; + else if (or>=0 && or<=I16_MAX) goto r_i16; + else goto r_i32; r_x : return FL_SET(x, fl_squoze); r_i8 : return FL_SET(toI8Any (x), fl_squoze);