summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-29 02:43:30 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-29 02:43:30 +0900
commitb8fadf3a6bc0435a23696bb7dc5a261066e0cf83 (patch)
tree8067f12fea545ef3204e2236e5293a2d15fa123f /bignum.c
parent07b2102a88a789100d0b048d527c780eae006c36 (diff)
Respect BIGNUM_DEBUG defined by command line option
And fixed typo in compilers.yml.
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 956673ac29..66b60e4292 100644
--- a/bignum.c
+++ b/bignum.c
@@ -2906,7 +2906,10 @@ bary_divmod(BDIGIT *qds, size_t qn, BDIGIT *rds, size_t rn, const BDIGIT *xds, s
}
-#define BIGNUM_DEBUG 0
+#ifndef BIGNUM_DEBUG
+# define BIGNUM_DEBUG (0+RUBY_DEBUG)
+#endif
+
#if BIGNUM_DEBUG
#define ON_DEBUG(x) do { x; } while (0)
static void