Compare commits

..

1 commit

Author SHA1 Message Date
7025307028 mem: Fixed bug in Clear 2026-02-11 02:51:20 +00:00

View file

@ -75,7 +75,7 @@ func Clear(dst unsafe.Pointer, value byte, count uintptr) unsafe.Pointer {
b := (*byte)(dst)
for range count { // @todo: loop unroll/maybe use asm?
*b = value
b = (*byte)(unsafe.Add(dst, 1))
b = (*byte)(unsafe.Add(b, 1))
}
return dst
}