diff options
author | Russ Cox <rsc@swtch.com> | 2012-10-21 11:25:08 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2012-10-21 11:25:08 -0400 |
commit | 0cfb376070a4bef7b4168a9795e025437e1be79f (patch) | |
tree | 9cea2b3befd9183d11ccc0745a81658d5956e4d7 /src/cmd/sam | |
parent | 34d629c8572518afe0a1d5698d7b184938e35a8f (diff) | |
download | plan9port-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/sam')
-rw-r--r-- | src/cmd/sam/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |