ci: fix byteptr cast in cmd/tools/bench/wyhash.v

pull/9603/head
Delyan Angelov 2021-04-04 23:33:27 +03:00
parent 43d83717e7
commit 5e394f911f
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ fn main() {
checksum = 0
for len in str_lens {
end_pos := start_pos + len
checksum ^= wyhash.wyhash_c(unsafe { byteptr(bytepile.data) + start_pos }, u64(len),
checksum ^= wyhash.wyhash_c(unsafe { &byte(bytepile.data) + start_pos }, u64(len),
1)
start_pos = end_pos
}