From 4ba00f2fd0063664084d032b2bdb38ccac4458cc Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 24 Feb 2012 22:23:17 -0800 Subject: [PATCH] Fix think-o in previous change. --- src/microcode/fixnum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } -- 2.25.1