aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/devdraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/devdraw/devdraw.c')
-rw-r--r--src/cmd/devdraw/devdraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/devdraw/devdraw.c b/src/cmd/devdraw/devdraw.c
index 2e3fd7a0..7f0bff21 100644
--- a/src/cmd/devdraw/devdraw.c
+++ b/src/cmd/devdraw/devdraw.c
@@ -727,10 +727,10 @@ drawcoord(uchar *p, uchar *maxp, int oldx, int *newx)
x |= *p++ << 7;
x |= *p++ << 15;
if(x & (1<<22))
- x |= ~0<<23;
+ x |= ~0U<<23;
}else{
if(b & 0x40)
- x |= ~0<<7;
+ x |= ~0U<<7;
x += oldx;
}
*newx = x;