This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Silence compiler warning
authorKarl Williamson <khw@cpan.org>
Sun, 25 Feb 2018 18:56:44 +0000 (11:56 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 25 Feb 2018 19:31:01 +0000 (12:31 -0700)
The Windows compiler no longer raises a warning if we change this UV to
a plain unsigned.

locale.c

index 2b1701f..809b6b9 100644 (file)
--- a/locale.c
+++ b/locale.c
@@ -1466,7 +1466,7 @@ S_new_ctype(pTHX_ const char *newctype)
      * POSIX::setlocale() */
 
     dVAR;
-    UV i;
+    unsigned int i;
 
     /* Don't check for problems if we are suppressing the warnings */
     bool check_for_problems = ckWARN_d(WARN_LOCALE) || UNLIKELY(DEBUG_L_TEST);