Browse Source

More assertions

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
f06059ab97
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/arch/i386/core/udivmod64.c

+ 1
- 0
src/arch/i386/core/udivmod64.c View File

@@ -305,6 +305,7 @@ UDItype __udivmoddi4 ( UDItype x, UDItype d, UDItype *r ) {
305 305
 		    ( struct uint64 * ) _q, ( struct uint64 * ) _r );
306 306
 
307 307
 	assert ( ( x == ( ( d * q ) + (*r) ) ) );
308
+	assert ( (*r) < d );
308 309
 
309 310
 	return q;
310 311
 }

Loading…
Cancel
Save