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/sam/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/sam') diff --git a/src/cmd/sam/file.c b/src/cmd/sam/file.c index 07d73bb9..c8b8d657 100644 --- a/src/cmd/sam/file.c +++ b/src/cmd/sam/file.c @@ -130,7 +130,7 @@ loginsert(File *f, uint p0, Rune *s, uint ns) return; if(ns == 0) return; - if(ns<0 || ns>STRSIZE) + if(ns>STRSIZE) panic("loginsert"); if(f->seq < seq) filemark(f); -- cgit v1.2.3