This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make PADOFFSET be SSizet_t
authorDavid Mitchell <davem@iabyn.com>
Mon, 26 Sep 2016 14:22:25 +0000 (15:22 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 26 Sep 2016 14:48:48 +0000 (15:48 +0100)
commitd081a35540aca5feaa56d2ce8a0b72b909a2d79e
treeb742f08de24ed3c9ac7759acc7621b2029f1616d
parentf2949f414d32db2fe5a59d82956b1cc4c693639f
make PADOFFSET be SSizet_t

Currently it's defined as U32 or U64 depending on whether pointers are
32 bit or 64-bit, which is just a long-winded way of doing

    typedef Size_t PADOFFSET

Change it to

    typedef SSize_t PADOFFSET

Making it signed makes it easier to handle comparisons against PADOFFSET
values that can be -1, such as PL_comppad_name_floor (which will be fixed
in the next commit).
op.c
pad.h
pp_hot.c