update stdlib memory and reflection helpers

This commit is contained in:
2026-07-20 23:37:30 +02:00
parent c1225f4ac2
commit 979a8e5f07
2 changed files with 4 additions and 7 deletions
+1 -4
View File
@@ -184,10 +184,7 @@ hide c_realloc func(_ ?@mut anyopaque, memory ?*mut u8, old_size usize, new_size
if new_size < copy_size {
copy_size = new_size
}
i usize = 0
while i < copy_size : i += 1 {
new_bytes[i] = old_memory[i]
}
memcopy!(new_bytes[..copy_size], old_memory[..copy_size])
c.free(old_memory)
}
return new_memory