Skip to content

Commit

Permalink
scope.c: silence some compiler warnings
Browse files Browse the repository at this point in the history
clang didn't like %ld on I32's.
  • Loading branch information
iabyn committed Dec 6, 2012
1 parent 39a0f51 commit 93a641a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scope.c
Expand Up @@ -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);

Expand Down

0 comments on commit 93a641a

Please sign in to comment.