From 62777b97d6ecfa54229c43ddb520e19089f7d3d5 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Tue, 13 Aug 2019 07:19:23 +0000 Subject: [PATCH] changed a couple of MOO_ASSERT()'s to MOO_STATIC_ASSERT()'s in lib/bigint.c --- moo/lib/bigint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moo/lib/bigint.c b/moo/lib/bigint.c index 0428f90..1c47b3f 100644 --- a/moo/lib/bigint.c +++ b/moo/lib/bigint.c @@ -513,7 +513,7 @@ int moo_inttointmax (moo_t* moo, moo_oop_t x, moo_intmax_t* i) static MOO_INLINE moo_oop_t make_bigint_with_oow (moo_t* moo, moo_oow_t w) { #if (MOO_LIW_BITS == MOO_OOW_BITS) - MOO_ASSERT (moo, MOO_SIZEOF(moo_oow_t) == MOO_SIZEOF(moo_liw_t)); + MOO_STATIC_ASSERT (moo, MOO_SIZEOF(moo_oow_t) == MOO_SIZEOF(moo_liw_t)); return moo_instantiate(moo, moo->_large_positive_integer, &w, 1); #elif (MOO_LIW_BITS == MOO_OOHW_BITS) moo_liw_t hw[2]; @@ -573,7 +573,7 @@ static MOO_INLINE moo_oop_t make_bloated_bigint_with_ooi (moo_t* moo, moo_ooi_t moo_oop_t z; MOO_ASSERT (moo, extra <= MOO_OBJ_SIZE_MAX - 1); - MOO_ASSERT (moo, MOO_SIZEOF(moo_oow_t) == MOO_SIZEOF(moo_liw_t)); + MOO_STATIC_ASSERT (moo, MOO_SIZEOF(moo_oow_t) == MOO_SIZEOF(moo_liw_t)); if (i >= 0) { w = i;