From: ceriel Date: Thu, 28 Apr 1988 14:21:55 +0000 (+0000) Subject: corrected the overflow checks X-Git-Tag: release-5-5~3304 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c4d0a4f4490aa427229d3d145cebaa000a98655c;p=ack.git corrected the overflow checks --- diff --git a/mach/proto/fp/compact.c b/mach/proto/fp/compact.c index d066e136b..ee0c3902e 100644 --- a/mach/proto/fp/compact.c +++ b/mach/proto/fp/compact.c @@ -104,7 +104,7 @@ dbl_over: trap(EFOVFL); } } /* check for overflow */ - if (f->exp >= DBL_MAX) + if (f->exp > DBL_MAX) goto dbl_over; /* STORE EXPONENT: */ @@ -177,7 +177,7 @@ sgl_over: trap(EFOVFL); } } } - if (f->exp >= SGL_MAX) + if (f->exp > SGL_MAX) goto sgl_over; /* STORE EXPONENT */