Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| 7025307028 |
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)
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue