plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 77929f826177f51f26c8d58f29dc40b988d6f15d
parent ef5c6a6edaf3dcf2cddd46841dc0dd8fce2bf967
Author: Russ Cox <rsc@swtch.com>
Date:   Fri,  3 Sep 2010 10:21:44 -0400

topng: 64-bit fix

R=rsc
http://codereview.appspot.com/2124042

Diffstat:
Msrc/cmd/jpg/writepng.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/jpg/writepng.c b/src/cmd/jpg/writepng.c @@ -228,7 +228,7 @@ memwritepng(Biobuf *bo, Memimage *r, ImageInfo *II) /* image chunks */ zr.nrow = nrow; zr.ncol = ncol; - zr.width = rgb->width * sizeof(ulong); + zr.width = rgb->width * sizeof(uint32); zr.data = rgb->data->bdata; zr.row = zr.col = 0; zr.pixwid = chantodepth(rgb->chan)/8;