Remove unnecessary type conversion
This commit is contained in:
parent
849a201d4a
commit
cc8563a2a2
@ -627,5 +627,5 @@ func (thread *ThreadContext) readMemory(addr uintptr, size uintptr) ([]byte, err
|
|||||||
// Sets the length of a slice.
|
// Sets the length of a slice.
|
||||||
func setSliceLength(ptr unsafe.Pointer, l int) {
|
func setSliceLength(ptr unsafe.Pointer, l int) {
|
||||||
lptr := (*int)(unsafe.Pointer(uintptr(ptr) + ptrsize))
|
lptr := (*int)(unsafe.Pointer(uintptr(ptr) + ptrsize))
|
||||||
*lptr = int(l)
|
*lptr = l
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user