diff options
author | rsc <devnull@localhost> | 2005-01-14 03:33:11 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-14 03:33:11 +0000 |
commit | 2634795b5f0053bc0ff08e5d7bbc0eda8efea061 (patch) | |
tree | e787c3f184a1f72fe10a3bc13304e27d9c0b941d /src/libdraw/md-fillpoly.c | |
parent | 93aa30a8df668b3ad5806c417acb65d2a4663178 (diff) | |
download | plan9port-2634795b5f0053bc0ff08e5d7bbc0eda8efea061.tar.gz plan9port-2634795b5f0053bc0ff08e5d7bbc0eda8efea061.tar.bz2 plan9port-2634795b5f0053bc0ff08e5d7bbc0eda8efea061.zip |
64-bit fixes from lucho
Diffstat (limited to 'src/libdraw/md-fillpoly.c')
-rw-r--r-- | src/libdraw/md-fillpoly.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libdraw/md-fillpoly.c b/src/libdraw/md-fillpoly.c index 928ae1e1..fcacae51 100644 --- a/src/libdraw/md-fillpoly.c +++ b/src/libdraw/md-fillpoly.c @@ -126,7 +126,7 @@ mod(long x, long y) long z; z = x%y; - if((long)(((u32int)z)^((u32int)y)) > 0 || z == 0) + if((long)(((ulong)z)^((ulong)y)) > 0 || z == 0) return z; return z + y; } @@ -134,7 +134,7 @@ mod(long x, long y) static long sdiv(long x, long y) { - if((long)(((u32int)x)^((u32int)y)) >= 0 || x == 0) + if((long)(((ulong)x)^((ulong)y)) >= 0 || x == 0) return x/y; return (x+((y>>30)|1))/y-1; |