tcsh/tcsh-6.19.00-005-ge0-is-always-true-for-unsigned.patch
David Kaspar [Dee'Kej] e444f23def tcsh-6.19.00-005-ge0-is-always-true-for-unsigned.patch added
> >= 0 is always true if unsigned (c11 allows wint_t to be unsigned),
  > and we handle the 0 case above anyway.
2016-05-03 17:11:23 +02:00

27 lines
699 B
Diff

From 99b0265fd9734996ed863328bf23dd42647c1aa0 Mon Sep 17 00:00:00 2001
From: christos <christos>
Date: Thu, 28 May 2015 14:03:00 +0000
Subject: [PATCH] >= 0 is always true if unsigned (c11 allows wint_t to be
unsigned), and we handle the 0 case above anyway.
---
sh.glob.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sh.glob.c b/sh.glob.c
index d4a118d..fc510bf 100644
--- a/sh.glob.c
+++ b/sh.glob.c
@@ -880,7 +880,7 @@ backeval(struct blk_buf *bb, struct Strbuf *word, Char *cp, int literal)
if (c != 0 && (cnt || literal))
pword(bb, word);
hadnl = 0;
- } while (c >= 0);
+ } while (c > 0);
eof:
cleanup_until(&pvec[0]);
pwait();
--
2.5.5