aboutsummaryrefslogtreecommitdiff
path: root/src/internal/zstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/zstd')
-rw-r--r--src/internal/zstd/xxhash.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/internal/zstd/xxhash.go b/src/internal/zstd/xxhash.go
index 4d579ee2d5..51d5ff8960 100644
--- a/src/internal/zstd/xxhash.go
+++ b/src/internal/zstd/xxhash.go
@@ -41,9 +41,7 @@ func (xh *xxhash64) reset() {
xh.v[3] = xxhPrime64c1
xh.v[3] = -xh.v[3]
- for i := range xh.buf {
- xh.buf[i] = 0
- }
+ clear(xh.buf[:])
xh.cnt = 0
}