commit 8cd258df4e66ff7c37d2a7b656b3b2b3d8d2ee3a from: Russ Cox date: Sun May 01 18:42:58 2011 UTC crop: fix 64-bit R=rsc http://codereview.appspot.com/4438088 commit - ba31ab3044765270d40c9da934dfc11e5f8b63c5 commit + 8cd258df4e66ff7c37d2a7b656b3b2b3d8d2ee3a blob - 6ec03b796668e2e4a258c637760be421b37a2816 blob + 10a08f77deddeea9e1a7883f6c6bfc3d5bf1afec --- src/cmd/draw/crop.c +++ 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();