Explorar o código

Remove asserts

Jeremy Soller %!s(int64=7) %!d(string=hai) anos
pai
achega
3f627b1b40
Modificáronse 1 ficheiros con 0 adicións e 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;