From 118abc2871c05fb0b38b7fa8a3fe6278162e4b08 Mon Sep 17 00:00:00 2001 From: Luna Date: Wed, 29 Oct 2014 11:55:21 +0100 Subject: [PATCH] Fix a build error on 32 bit go Change-Id: Iac5894fd8f56da7e420714558a94d63d4fea2d72 --- go/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/builder.go b/go/builder.go index 46543c8c3..94e7e95a6 100644 --- a/go/builder.go +++ b/go/builder.go @@ -152,7 +152,7 @@ func (b *Builder) EndObject() UOffsetT { // Doubles the size of the byteslice, and copies the old data towards the // end of the new byteslice (since we build the buffer backwards). func (b *Builder) growByteBuffer() { - if (len(b.Bytes) & 0xC0000000) != 0 { + if (int64(len(b.Bytes)) & int64(0xC0000000)) != 0 { panic("cannot grow buffer beyond 2 gigabytes") } newSize := len(b.Bytes) * 2