From cc44d9965adf5797d0348ea25a2ecc95462c25a8 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 24 Feb 2012 22:28:34 -0800 Subject: [PATCH] Don't fold argument check into expression. --- src/microcode/fixnum.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/microcode/fixnum.c b/src/microcode/fixnum.c index b889bf897..80f64263c 100644 --- a/src/microcode/fixnum.c +++ b/src/microcode/fixnum.c @@ -209,9 +209,9 @@ DEFINE_PRIMITIVE ("FIXNUM-QUOTIENT", Prim_fixnum_quotient, 2, 2, 0) { long numerator = (arg_fixnum (1)); long denominator = (arg_fixnum (2)); - FIXNUM_RESULT (denominator == 0 - ? (error_bad_range_arg (2), 0) - : FIXNUM_QUOTIENT (numerator, denominator)); + if (denominator == 0) + error_bad_range_arg (2); + FIXNUM_RESULT (FIXNUM_QUOTIENT (numerator, denominator)); } } @@ -221,9 +221,9 @@ DEFINE_PRIMITIVE ("FIXNUM-REMAINDER", Prim_fixnum_remainder, 2, 2, 0) { long numerator = (arg_fixnum (1)); long denominator = (arg_fixnum (2)); - FIXNUM_RESULT (denominator == 0 - ? (error_bad_range_arg (2), 0) - : FIXNUM_REMAINDER (numerator, denominator)); + if (denominator == 0) + error_bad_range_arg (2); + FIXNUM_RESULT (FIXNUM_REMAINDER (numerator, denominator)); } } -- 2.25.1