mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: make v_realloc use int parameter instead of u32 (#7080)
This commit is contained in:
@@ -96,7 +96,7 @@ fn (mut a array) ensure_cap(required int) {
|
||||
if a.cap == 0 {
|
||||
a.data = vcalloc(cap * a.element_size)
|
||||
} else {
|
||||
a.data = v_realloc(a.data, u32(cap * a.element_size))
|
||||
a.data = v_realloc(a.data, cap * a.element_size)
|
||||
}
|
||||
a.cap = cap
|
||||
}
|
||||
|
Reference in New Issue
Block a user