From 5e394f911f0deee42317d6730f836cc5e85b1370 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 4 Apr 2021 23:33:27 +0300 Subject: [PATCH] ci: fix byteptr cast in cmd/tools/bench/wyhash.v --- cmd/tools/bench/wyhash.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/bench/wyhash.v b/cmd/tools/bench/wyhash.v index cb4a9b9fc4..b760ad6b55 100644 --- a/cmd/tools/bench/wyhash.v +++ b/cmd/tools/bench/wyhash.v @@ -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 }