Explorar el Código

Remove asserts

Jeremy Soller hace 7 años
padre
commit
3f627b1b40
Se han modificado 1 ficheros con 0 adiciones y 3 borrados
  1. 0 3
      src/stdlib/src/lib.rs

+ 0 - 3
src/stdlib/src/lib.rs

@@ -311,9 +311,6 @@ pub extern "C" fn lrand48() -> c_long {
 }
 
 unsafe fn malloc_inner(size: usize, offset: usize, align: usize) -> *mut c_void {
-    assert!(offset >= 16);
-    assert!(align >= 8);
-
     let ptr = ralloc::alloc(size + offset, align);
     if !ptr.is_null() {
         *(ptr as *mut u64) = (size + offset) as u64;