mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
unsafe: tag with unsafe{} some more pointer manipulations
This commit is contained in:
parent
949ed90b51
commit
276c1de190
9 changed files with 44 additions and 25 deletions
|
@ -36,5 +36,5 @@ fn getrandom(bytes_needed int, buffer voidptr) int {
|
|||
if bytes_needed > read_batch_size {
|
||||
panic('getrandom() dont request more than $read_batch_size bytes at once.')
|
||||
}
|
||||
return C.syscall(C.SYS_getrandom, buffer, bytes_needed, 0)
|
||||
return unsafe { C.syscall(C.SYS_getrandom, buffer, bytes_needed, 0) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue