]> Cypherpunks repositories - gostls13.git/commitdiff
image/jpeg: fix build
authorMikio Hara <mikioh.mikioh@gmail.com>
Wed, 14 Sep 2011 15:14:03 +0000 (11:14 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 14 Sep 2011 15:14:03 +0000 (11:14 -0400)
R=golang-dev
CC=golang-dev
https://golang.org/cl/5020045

src/pkg/image/jpeg/writer_test.go

index 7aec70f016e295435c02ccd7099df87a8876328f..44c045ed05652c9e1f5ef231c90b38a157724758 100644 (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))