summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-10-12 06:42:25 -0600
committerKarl Williamson <khw@cpan.org>2022-10-13 21:59:50 -0600
commit4fd4a5042361a0252bfb76c807e598eba55801a2 (patch)
treecffa79b31b2d3cc04220f58e0e17035cdde714d5 /locale.c
parente27880ac21ce100eceb1e918e221ca0fbe10d095 (diff)
downloadperl-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale.c b/locale.c
index 33170003dd..373b0887ee 100644
--- a/locale.c
+++ b/locale.c
@@ -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.