crop: fix 64-bit

R=rsc
http://codereview.appspot.com/4438088
This commit is contained in:
Russ Cox 2011-05-01 14:42:58 -04:00
parent ba31ab3044
commit 8cd258df4e

View file

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