diff options
author | Russ Cox <rsc@swtch.com> | 2011-05-01 14:42:58 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-05-01 14:42:58 -0400 |
commit | 8cd258df4e66ff7c37d2a7b656b3b2b3d8d2ee3a (patch) | |
tree | b9bde9a6b7a0fe43d2299293c8798b9ece446d9a /src/cmd/draw | |
parent | ba31ab3044765270d40c9da934dfc11e5f8b63c5 (diff) | |
download | plan9port-8cd258df4e66ff7c37d2a7b656b3b2b3d8d2ee3a.tar.gz plan9port-8cd258df4e66ff7c37d2a7b656b3b2b3d8d2ee3a.tar.bz2 plan9port-8cd258df4e66ff7c37d2a7b656b3b2b3d8d2ee3a.zip |
crop: fix 64-bit
R=rsc
http://codereview.appspot.com/4438088
Diffstat (limited to 'src/cmd/draw')
-rw-r--r-- | src/cmd/draw/crop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/draw/crop.c b/src/cmd/draw/crop.c index 6ec03b79..10a08f77 100644 --- a/src/cmd/draw/crop.c +++ b/src/cmd/draw/crop.c @@ -35,12 +35,12 @@ getint(char *s) } Rectangle -crop(Memimage *m, ulong c) +crop(Memimage *m, uint32 c) { Memimage *n; int x, y, bpl, wpl; int left, right, top, bottom; - ulong *buf; + uint32 *buf; left = m->r.max.x; right = m->r.min.x; @@ -90,7 +90,7 @@ main(int argc, char *argv[]) Point t; Memimage *m, *new; char *file; - ulong bg, cropval; + uint32 bg, cropval; long dw; memimageinit(); |