image/jpeg: fix build

R=golang-dev
CC=golang-dev
https://golang.org/cl/5020045
This commit is contained in:
Mikio Hara 2011-09-14 11:14:03 -04:00 committed by Russ Cox
parent 1a35450a10
commit fa767ff231

View File

@ -90,7 +90,7 @@ func TestWriter(t *testing.T) {
func BenchmarkEncodeRGBOpaque(b *testing.B) {
b.StopTimer()
img := image.NewRGBA(640, 480)
img := image.NewRGBA(image.Rect(0, 0, 640, 480))
// Set all pixels to 0xFF alpha to force opaque mode.
bo := img.Bounds()
rnd := rand.New(rand.NewSource(123))