Compare commits
No commits in common. "master" and "master" have entirely different histories.
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ func Clear(dst unsafe.Pointer, value byte, count uintptr) unsafe.Pointer {
|
||||||
b := (*byte)(dst)
|
b := (*byte)(dst)
|
||||||
for range count { // @todo: loop unroll/maybe use asm?
|
for range count { // @todo: loop unroll/maybe use asm?
|
||||||
*b = value
|
*b = value
|
||||||
b = (*byte)(unsafe.Add(b, 1))
|
b = (*byte)(unsafe.Add(dst, 1))
|
||||||
}
|
}
|
||||||
return dst
|
return dst
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue