From c6de6b60d2af6dc769c7656b94ba848e34435d44 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 29 Jul 2015 18:37:35 -0400 Subject: [PATCH] vp8: split expression to placate 386 compiler Fixes golang/go#11917. Change-Id: I2eff23bd98be7531d9a115714ca50e45d3064584 Reviewed-on: https://go-review.googlesource.com/12856 Reviewed-by: Ian Lance Taylor --- vp8/partition.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vp8/partition.go b/vp8/partition.go index a69bd65..72288bd 100644 --- a/vp8/partition.go +++ b/vp8/partition.go @@ -74,7 +74,9 @@ func (p *partition) readBit(prob uint8) bool { p.unexpectedEOF = true return false } - p.bits |= uint32(p.buf[p.r]) << (8 - p.nBits) + // Expression split for 386 compiler. + x := uint32(p.buf[p.r]) + p.bits |= x << (8 - p.nBits) p.r++ p.nBits += 8 }