提交 cc8563a2 编写于 作者: D Derek Parker

Remove unnecessary type conversion

上级 849a201d
......@@ -627,5 +627,5 @@ func (thread *ThreadContext) readMemory(addr uintptr, size uintptr) ([]byte, err
// Sets the length of a slice.
func setSliceLength(ptr unsafe.Pointer, l int) {
lptr := (*int)(unsafe.Pointer(uintptr(ptr) + ptrsize))
*lptr = int(l)
*lptr = l
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册