summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rational.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rational.c b/rational.c
index e4f59895bf..0044024cbf 100644
--- a/rational.c
+++ b/rational.c
@@ -101,7 +101,10 @@ f_lt_p(VALUE x, VALUE y)
return RTEST(rb_funcall(x, '<', 1, y));
}
+#ifndef NDEBUG
+/* f_mod is used only in f_gcd defined when NDEBUG is not defined */
binop(mod, '%')
+#endif
inline static VALUE
f_mul(VALUE x, VALUE y)