From 6c68fb76bb7e836dc4dcc0b9e00c4f5d1bf265df Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Thu, 25 Mar 2021 16:58:24 +0000 Subject: [PATCH] fixed minor flaws in bigint.c --- moo/lib/bigint.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/moo/lib/bigint.c b/moo/lib/bigint.c index 3b5f925..b855f6e 100644 --- a/moo/lib/bigint.c +++ b/moo/lib/bigint.c @@ -882,6 +882,11 @@ moo_oop_t moo_ooitoint (moo_t* moo, moo_ooi_t i) } } +#if (MOO_SIZEOF_UINTMAX_T == MOO_SIZEOF_OOW_T) + + /* do nothing. required macros are defined in moo.h */ + +#else moo_oop_t moo_intmaxtoint (moo_t* moo, moo_intmax_t i) { if (MOO_IN_SMOOI_RANGE(i)) @@ -905,6 +910,7 @@ moo_oop_t moo_uintmaxtoint (moo_t* moo, moo_uintmax_t i) return make_bigint_with_uintmax(moo, i); } } +#endif static MOO_INLINE moo_oop_t expand_bigint (moo_t* moo, moo_oop_t oop, moo_oow_t inc) {