aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/jpg
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2010-09-03 10:21:44 -0400
committerRuss Cox <rsc@swtch.com>2010-09-03 10:21:44 -0400
commit77929f826177f51f26c8d58f29dc40b988d6f15d (patch)
treed8e7c519deb0c349ecfb676c528a7969d3d11da2 /src/cmd/jpg
parentef5c6a6edaf3dcf2cddd46841dc0dd8fce2bf967 (diff)
downloadplan9port-77929f826177f51f26c8d58f29dc40b988d6f15d.tar.gz
plan9port-77929f826177f51f26c8d58f29dc40b988d6f15d.tar.bz2
plan9port-77929f826177f51f26c8d58f29dc40b988d6f15d.zip
topng: 64-bit fix
R=rsc http://codereview.appspot.com/2124042
Diffstat (limited to 'src/cmd/jpg')
-rw-r--r--src/cmd/jpg/writepng.c2
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;