mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: fix a compilation warning with -d debug_malloc
This commit is contained in:
parent
446631ceb5
commit
7f0c8d1eec
@ -193,7 +193,7 @@ pub fn malloc(n int) byteptr {
|
|||||||
$if debug_malloc ? {
|
$if debug_malloc ? {
|
||||||
// Fill in the memory with something != 0, so it is easier to spot
|
// Fill in the memory with something != 0, so it is easier to spot
|
||||||
// when the calling code wrongly relies on it being zeroed.
|
// when the calling code wrongly relies on it being zeroed.
|
||||||
C.memset(res, 0x88, n)
|
unsafe { C.memset(res, 0x88, n) }
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user