--- pacman-6.0.2/lib/libalpm/diskspace.c 2022-10-03 05:52:04.000000000 +0300 +++ pacman-6.0.2/lib/libalpm/diskspace.c.patch 2023-01-22 13:01:43.983498848 +0300 @@ -349,7 +349,7 @@ "partition %s, needed %jd, cushion %ju, free %ju\n", mp->mount_dir, (intmax_t)mp->max_blocks_needed, (uintmax_t)cushion, (uintmax_t)mp->fsp.f_bavail); - if(needed >= 0 && (fsblkcnt_t)needed > mp->fsp.f_bavail) { + if((int)needed >= 0 && (fsblkcnt_t)needed > mp->fsp.f_bavail) { _alpm_log(handle, ALPM_LOG_ERROR, _("Partition %s too full: %jd blocks needed, %ju blocks free\n"), mp->mount_dir, (intmax_t)needed, (uintmax_t)mp->fsp.f_bavail);