1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: disallow op= and infix on a voidptr (#7175)

This commit is contained in:
Nick Treleaven
2020-12-07 20:43:38 +00:00
committed by GitHub
parent ed9aa873c1
commit 63557d0d02
7 changed files with 68 additions and 10 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 { bytepile.data + start_pos }, u64(len), 1)
checksum ^= wyhash.wyhash_c(unsafe { byteptr(bytepile.data) + start_pos }, u64(len), 1)
start_pos = end_pos
}
bhashing_1.measure('wyhash.wyhash_c | checksum: ${checksum:22}')