diff options
author | Karl Williamson <khw@cpan.org> | 2022-10-12 06:42:25 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-10-13 21:59:50 -0600 |
commit | 4fd4a5042361a0252bfb76c807e598eba55801a2 (patch) | |
tree | cffa79b31b2d3cc04220f58e0e17035cdde714d5 /locale.c | |
parent | e27880ac21ce100eceb1e918e221ca0fbe10d095 (diff) | |
download | perl-4fd4a5042361a0252bfb76c807e598eba55801a2.tar.gz |
locale.c: Fix Debug statement on netbsd
Other platforms declare the nl_item typedef an int, but this one makes
it a long. To portably output its value, cast it to a long and use the
%ld format.
Diffstat (limited to 'locale.c')
-rw-r--r-- | locale.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3899,8 +3899,8 @@ S_my_langinfo_i(pTHX_ assert(cat_index <= NOMINAL_LC_ALL_INDEX); DEBUG_Lv(PerlIO_printf(Perl_debug_log, - "Entering my_langinfo item=%d, using locale %s\n", - item, locale)); + "Entering my_langinfo item=%ld, using locale %s\n", + (long) item, locale)); /*--------------------------------------------------------------------------*/ /* Above is the common beginning to all the implementations of my_langinfo(). * Below are the various completions. |