From: Chris Hanson Date: Sat, 25 Feb 2012 06:23:17 +0000 (-0800) Subject: Fix think-o in previous change. X-Git-Tag: release-9.2.0~288 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=4ba00f2fd0063664084d032b2bdb38ccac4458cc;p=mit-scheme.git Fix think-o in previous change. --- diff --git a/src/microcode/fixnum.c b/src/microcode/fixnum.c index 3af0dae67..b889bf897 100644 --- a/src/microcode/fixnum.c +++ b/src/microcode/fixnum.c @@ -209,7 +209,7 @@ DEFINE_PRIMITIVE ("FIXNUM-QUOTIENT", Prim_fixnum_quotient, 2, 2, 0) { long numerator = (arg_fixnum (1)); long denominator = (arg_fixnum (2)); - FIXNUM_RESULT (numerator == 0 + FIXNUM_RESULT (denominator == 0 ? (error_bad_range_arg (2), 0) : FIXNUM_QUOTIENT (numerator, denominator)); } @@ -221,7 +221,7 @@ DEFINE_PRIMITIVE ("FIXNUM-REMAINDER", Prim_fixnum_remainder, 2, 2, 0) { long numerator = (arg_fixnum (1)); long denominator = (arg_fixnum (2)); - FIXNUM_RESULT (numerator == 0 + FIXNUM_RESULT (denominator == 0 ? (error_bad_range_arg (2), 0) : FIXNUM_REMAINDER (numerator, denominator)); }