Repository: lucy Updated Branches: refs/heads/master 67c6fec0b -> 54841aa79
Adapt Go bindings for BitVector width change. Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/42640a6f Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/42640a6f Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/42640a6f Branch: refs/heads/master Commit: 42640a6f408adb78556532b6a43f4d71cd842caa Parents: 71d7edd Author: Marvin Humphrey <[email protected]> Authored: Wed Apr 6 18:16:57 2016 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Tue Apr 12 21:38:55 2016 -0700 ---------------------------------------------------------------------- go/lucy/object.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/42640a6f/go/lucy/object.go ---------------------------------------------------------------------- diff --git a/go/lucy/object.go b/go/lucy/object.go index 356f255..de0040f 100644 --- a/go/lucy/object.go +++ b/go/lucy/object.go @@ -28,11 +28,11 @@ import "git-wip-us.apache.org/repos/asf/lucy-clownfish.git/runtime/go/clownfish" func (bv *BitVectorIMP) ToArray() []bool { cap := bv.getCapacity() - if cap != uint32(int(cap)) { + if cap != uintptr(int(cap)) { panic(fmt.Sprintf("Capacity of range: %d", cap)) } bools := make([]bool, int(cap)) - for i := uint32(0); i < cap; i++ { + for i := uintptr(0); i < cap; i++ { bools[i] = bv.Get(i) } return bools
