From 2a9a794bffa30402819cd9873577ecc2f424288d Mon Sep 17 00:00:00 2001 From: Ryan Hileman Date: Mon, 14 Mar 2016 17:44:02 -0700 Subject: [PATCH] tweak Go bindings for 32-bit --- bindings/go/unicorn/unicorn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/go/unicorn/unicorn.go b/bindings/go/unicorn/unicorn.go index 2b0e456c..be8a7348 100644 --- a/bindings/go/unicorn/unicorn.go +++ b/bindings/go/unicorn/unicorn.go @@ -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),