ttopng: 64-bit fix - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 77929f826177f51f26c8d58f29dc40b988d6f15d
(DIR) parent ef5c6a6edaf3dcf2cddd46841dc0dd8fce2bf967
(HTM) Author: Russ Cox <rsc@swtch.com>
Date: Fri, 3 Sep 2010 10:21:44 -0400
ttopng: 64-bit fix
R=rsc
http://codereview.appspot.com/2124042
Diffstat:
M src/cmd/jpg/writepng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/jpg/writepng.c b/src/cmd/jpg/writepng.c
t@@ -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;