Silence new warning with gcc-11

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2021-05-17 17:09:18 +10:00
parent 618fa4f675
commit 17ccc2f9c2

View file

@ -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++;
}