summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/i386/core/udivmod64.c1
1 files changed, 1 insertions, 0 deletions
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;
}