From 734e9fc116a1968e1cf6210dcb91aa67a891f33e Mon Sep 17 00:00:00 2001 From: dzaima Date: Wed, 7 Sep 2022 23:21:24 +0300 Subject: [PATCH] better type checking helpers --- src/h.h | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/src/h.h b/src/h.h index d4dedd49..b5c2b98f 100644 --- a/src/h.h +++ b/src/h.h @@ -419,10 +419,31 @@ static B m_c32(u32 n) { return tagu64(n,C32_TAG); } // TODO check validity? static B m_i32(i32 n) { return m_f64(n); } static B m_usz(usz n) { return n