topng: 64-bit fix

R=rsc
http://codereview.appspot.com/2124042
This commit is contained in:
Russ Cox 2010-09-03 10:21:44 -04:00
parent ef5c6a6eda
commit 77929f8261

View file

@ -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;