From 77929f826177f51f26c8d58f29dc40b988d6f15d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 3 Sep 2010 10:21:44 -0400 Subject: topng: 64-bit fix R=rsc http://codereview.appspot.com/2124042 --- src/cmd/jpg/writepng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/jpg') diff --git a/src/cmd/jpg/writepng.c b/src/cmd/jpg/writepng.c index 76835e01..24a61a36 100644 --- 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; -- cgit v1.2.3