aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/draw
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-21 11:25:08 -0400
committerRuss Cox <rsc@swtch.com>2012-10-21 11:25:08 -0400
commit0cfb376070a4bef7b4168a9795e025437e1be79f (patch)
tree9cea2b3befd9183d11ccc0745a81658d5956e4d7 /src/cmd/draw
parent34d629c8572518afe0a1d5698d7b184938e35a8f (diff)
downloadplan9port-0cfb376070a4bef7b4168a9795e025437e1be79f.tar.gz
plan9port-0cfb376070a4bef7b4168a9795e025437e1be79f.tar.bz2
plan9port-0cfb376070a4bef7b4168a9795e025437e1be79f.zip
fix clang warnings reported by Tuncer Ayaz
R=rsc http://codereview.appspot.com/6744054
Diffstat (limited to 'src/cmd/draw')
-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;
}