commit 8cd258df4e66ff7c37d2a7b656b3b2b3d8d2ee3a
parent ba31ab3044765270d40c9da934dfc11e5f8b63c5
Author: Russ Cox <rsc@swtch.com>
Date: Sun, 1 May 2011 14:42:58 -0400
crop: fix 64-bit
R=rsc
http://codereview.appspot.com/4438088
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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();