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 <iant@golang.org>
This commit is contained in:
Russ Cox 2015-07-29 18:37:35 -04:00
parent 5c9906b535
commit c6de6b60d2
1 changed files with 3 additions and 1 deletions

View File

@ -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
}