summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2021-05-17 09:09:18 +0200
committerAllan McRae <allan@archlinux.org>2021-05-17 09:09:18 +0200
commit17ccc2f9c22914d1c20b4f7849130c4171fed54b (patch)
tree446570fd4c7e8061e494514478535e5f1f70b31a
parent618fa4f675594798825a01bd0a3462903dda6ef7 (diff)
downloadpacman-17ccc2f9c22914d1c20b4f7849130c4171fed54b.tar.gz
pacman-17ccc2f9c22914d1c20b4f7849130c4171fed54b.tar.xz
Silence new warning with gcc-11
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--src/pacman/callback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 99ad716e..75c74f8b 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -677,7 +677,7 @@ void cb_progress(void *ctx, alpm_progress_t event, const char *pkgname,
int i = textlen - 3;
wchar_t *p = wcstr;
/* grab the max number of char columns we can fill */
- while(i - wcwidth(*p) > 0) {
+ while(i > wcwidth(*p)) {
i -= wcwidth(*p);
p++;
}