From: Chris Hanson Date: Sat, 25 Feb 2012 06:28:34 +0000 (-0800) Subject: Don't fold argument check into expression. X-Git-Tag: release-9.2.0~287 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=cc44d9965adf5797d0348ea25a2ecc95462c25a8;p=mit-scheme.git Don't fold argument check into expression. --- 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)); } }