builtin: fix a compilation warning with `-d debug_malloc`

pull/9316/head
Delyan Angelov 2021-03-15 17:37:06 +02:00
parent 446631ceb5
commit 7f0c8d1eec
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ pub fn malloc(n int) byteptr {
$if debug_malloc ? {
// Fill in the memory with something != 0, so it is easier to spot
// when the calling code wrongly relies on it being zeroed.
C.memset(res, 0x88, n)
unsafe { C.memset(res, 0x88, n) }
}
return res
}