base: Fix loop range in pngwriter
authorChun-Chen Hsu <chunchenhsu@google.com>
Wed, 14 Mar 2018 02:03:03 +0000 (10:03 +0800)
committerChun-Chen TK Hsu <chunchenhsu@google.com>
Wed, 14 Mar 2018 11:56:29 +0000 (11:56 +0000)
commit182b44ee37a0e3071c19f1a34300502fff70d860
treee5de47bff0d5cac6088d423bbcf586686fe0f2ad
parent6e63552f5058564e32899a7973ec073a460ff55d
base: Fix loop range in pngwriter

The inner loop range limit should be width instead of height.

Change-Id: I091c590713c945d4bd04ffcc974d4eb8aa23d1b2
Signed-off-by: Chun-Chen Hsu <chunchenhsu@google.com>
Reviewed-on: https://gem5-review.googlesource.com/9081
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/base/pngwriter.cc