From 0cfb376070a4bef7b4168a9795e025437e1be79f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 21 Oct 2012 11:25:08 -0400 Subject: fix clang warnings reported by Tuncer Ayaz R=rsc http://codereview.appspot.com/6744054 --- src/cmd/draw/tweak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/draw') 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'255){ + if(buf[0]<'0' || '9'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; } -- cgit v1.2.3