diff options
-rw-r--r-- | src/cmd/jpg/writepng.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |