From 2eecc0feda12fbfc13383a8292683f1fd089eac5 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 8 Oct 2022 19:38:33 +0300 Subject: [PATCH] squeeze *u8/*u16/*u32 result it has to sometimes be one size up to accommodate for the upper unsigned range, but often (?) it should fit fine in the signed range of its type --- src/ffi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ffi.c b/src/ffi.c index 21e7fd60..aa69643a 100644 --- a/src/ffi.c +++ b/src/ffi.c @@ -655,9 +655,9 @@ B buildObj(BQNFFIEnt ent, bool anyMut, B* objs, usz* objPos) { if (isC32(e)) { switch(o2cG(e)) { default: UD; case sty_i8: case sty_i16: case sty_i32: case sty_f64: return inc(f); - case sty_u8: { u8* tp=tyarr_ptr(f); i16* rp; B r=m_i16arrv(&rp, ia); for (usz i=0; i