From: Michael Brown Date: Thu, 1 Feb 2007 02:18:22 +0000 (+0000) Subject: More assertions X-Git-Tag: v0.9.3~469 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f06059ab97023821429f2853114b9edaeffe3169;p=thirdparty%2Fipxe.git More assertions --- diff --git a/src/arch/i386/core/udivmod64.c b/src/arch/i386/core/udivmod64.c index b4f14b110..faf6fd8c8 100644 --- a/src/arch/i386/core/udivmod64.c +++ b/src/arch/i386/core/udivmod64.c @@ -305,6 +305,7 @@ UDItype __udivmoddi4 ( UDItype x, UDItype d, UDItype *r ) { ( struct uint64 * ) _q, ( struct uint64 * ) _r ); assert ( ( x == ( ( d * q ) + (*r) ) ) ); + assert ( (*r) < d ); return q; }