diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-07-29 14:12:20 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-07-30 10:44:07 +0200 |
commit | df4022ccda870f2a1b0e4e254f4a298da48fc4f9 (patch) | |
tree | 61e697b6176b1589e184825ecd0642d70721f374 /src | |
parent | 6bbeaf581042e4e71b1cb9fde175369e54a99ede (diff) | |
download | pianobar-df4022ccda870f2a1b0e4e254f4a298da48fc4f9.tar.gz pianobar-df4022ccda870f2a1b0e4e254f4a298da48fc4f9.tar.bz2 pianobar-df4022ccda870f2a1b0e4e254f4a298da48fc4f9.zip |
Useless comparison removed
Unsigned int is always >= 0.
Diffstat (limited to 'src')
-rw-r--r-- | src/ui_readline.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui_readline.c b/src/ui_readline.c index e65d6b5..c2cd410 100644 --- a/src/ui_readline.c +++ b/src/ui_readline.c @@ -100,13 +100,11 @@ size_t BarReadline (char *buf, size_t bufSize, const char *mask, } else { /* delete utf-8 multibyte chars */ /* char content */ - while (bufPos >= 0 && - BarReadlineIsUtf8Content (buf[bufPos-1])) { + while (BarReadlineIsUtf8Content (buf[bufPos-1])) { BarReadlineMoveLeft (buf, &bufPos, &bufLen); } /* char length */ - if (bufPos >= 0 && - BarReadlineIsUtf8Start (buf[bufPos-1])) { + if (BarReadlineIsUtf8Start (buf[bufPos-1])) { BarReadlineMoveLeft (buf, &bufPos, &bufLen); } } |