tweak Go bindings for 32-bit
This commit is contained in:
parent
0524f34b82
commit
2a9a794bff
@ -120,7 +120,7 @@ func (u *uc) MemRegions() ([]*MemRegion, error) {
|
||||
return nil, errReturn(ucerr)
|
||||
}
|
||||
ret := make([]*MemRegion, count)
|
||||
tmp := (*[1 << 30]C.struct_uc_mem_region)(unsafe.Pointer(regions))[:count]
|
||||
tmp := (*[1 << 24]C.struct_uc_mem_region)(unsafe.Pointer(regions))[:count]
|
||||
for i, v := range tmp {
|
||||
ret[i] = &MemRegion{
|
||||
Begin: uint64(v.begin),
|
||||
|
Loading…
Reference in New Issue
Block a user