aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/draw/tweak.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/draw/tweak.c')
-rw-r--r--src/cmd/draw/tweak.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/draw/tweak.c b/src/cmd/draw/tweak.c
index 1ee5d14c..9d7cd601 100644
--- a/src/cmd/draw/tweak.c
+++ b/src/cmd/draw/tweak.c
@@ -1211,7 +1211,7 @@ cntledit(char *tag)
}
if(strcmp(tag, "but1")==0
|| strcmp(tag, "but2")==0){
- if(buf[0]<'0' || '9'<buf[0] || (l=atoi(buf))<0 || l>255){
+ if(buf[0]<'0' || '9'<buf[0] || (long)(l=atoi(buf))<0 || l>255){
mesg("illegal value");
return;
}
@@ -1855,7 +1855,7 @@ tchar(Thing *t)
c -= t->off;
d -= t->off;
while(c <= d){
- if(c<0 || c>=t->s->n){
+ if((long)c<0 || c>=t->s->n){
mesg("0x%lux not in font %s", c+t->off, t->name);
return;
}