Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: Change type of a variable to silence compiler warning
The variable `already_checked` in Perl_init_i18nl10n() never become negative, and never exceed `C_trial` which is a small positive integer. Thus `unsigned int` should be enough. This fixes build warning on 32-bit target (where sizeof(unsigned int) == sizeof(SSize_t)): locale.c: In function ‘Perl_init_i18nl10n’: locale.c:7370:40: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘ssize_t’ {aka ‘int’} [-Wsign-compare] 7370 | for (unsigned int i = 0; i < already_checked; i++) { | ^
- Loading branch information