mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
unsafe: tag with unsafe{} some more pointer manipulations
This commit is contained in:
@ -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) }
|
||||
}
|
||||
|
Reference in New Issue
Block a user