diff --git a/src/arch/i386/core/udivmod64.c b/src/arch/i386/core/udivmod64.c index b4f14b11..faf6fd8c 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; }