summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2012-12-06 16:42:20 +0000
committerDavid Mitchell <davem@iabyn.com>2012-12-06 16:42:20 +0000
commit93a641ae382638ffd1980378be4810244d04f4b0 (patch)
treeeb08078a752f7486f36279dc992444a4f3dca939 /scope.c
parent39a0f513a3472b239cae9745b3b89abe93b6ca79 (diff)
downloadperl-93a641ae382638ffd1980378be4810244d04f4b0.tar.gz
scope.c: silence some compiler warnings
clang didn't like %ld on I32's.
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/scope.c b/scope.c
index ab09eff739..3d62918772 100644
--- a/scope.c
+++ b/scope.c
@@ -724,8 +724,9 @@ Perl_save_alloc(pTHX_ I32 size, I32 pad)
const UV elems_shifted = elems << SAVE_TIGHT_SHIFT;
if ((elems_shifted >> SAVE_TIGHT_SHIFT) != elems)
- Perl_croak(aTHX_ "panic: save_alloc elems %"UVuf" out of range (%ld-%ld)",
- elems, size, pad);
+ Perl_croak(aTHX_
+ "panic: save_alloc elems %"UVuf" out of range (%"IVdf"-%"IVdf")",
+ elems, (IV)size, (IV)pad);
SSGROW(elems + 1);