This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In pp_pack.c, refactor DO_BO_(UN)?PACK_N to use sizeof() on the variable.
authorNicholas Clark <nick@ccl4.org>
Mon, 6 May 2013 14:22:01 +0000 (16:22 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 20 May 2013 19:19:43 +0000 (21:19 +0200)
commitdf609c5f9dbf07fc7a18075911f5eaefdeea3ffd
treef7b07e3d3d8508015b6cbd9c6b1c9ea9c4e436f0
parent3cc90e2e712615f2081743c38153954d60e3f0df
In pp_pack.c, refactor DO_BO_(UN)?PACK_N to use sizeof() on the variable.

Previously they were using sizeof() on the type argument passed to the
macro. This change makes their implementation more like DO_BO_(UN)?PACK
and DO_BO_(UN)?PACK_PTR.
pp_pack.c