From: Mikio Hara Date: Wed, 14 Sep 2011 15:14:03 +0000 (-0400) Subject: image/jpeg: fix build X-Git-Tag: weekly.2011-09-16~36 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fa767ff231bfaa9313f01c018a9a8d4e85fe2562;p=gostls13.git image/jpeg: fix build R=golang-dev CC=golang-dev https://golang.org/cl/5020045 --- diff --git a/src/pkg/image/jpeg/writer_test.go b/src/pkg/image/jpeg/writer_test.go index 7aec70f016..44c045ed05 100644 --- a/src/pkg/image/jpeg/writer_test.go +++ b/src/pkg/image/jpeg/writer_test.go @@ -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))