This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.h: change regexp_internal attribute from I32 to U32
authorYves Orton <demerphq@gmail.com>
Sat, 12 Feb 2022 04:36:36 +0000 (05:36 +0100)
committerHugo van der Sanden <hv@crypt.org>
Fri, 18 Feb 2022 15:08:25 +0000 (15:08 +0000)
commitf08cf4076ad9433e9a9aa85b316dbb203517a353
tree76e9d6254a81618993b1d1d6fa575ce6bc63f070
parent615094ef9383c35e9fb5760a1c6f3f1c92fedc5d
regcomp.h: change regexp_internal attribute from I32 to U32

This changes the name_list_idx attribute from I32 to a U32 as it will
never be negative, and as of a963d6d5acabdd8c7 a 0 can be safely used
to represent "no value" for items in the 'data' array.

I noticed this while cleaning up the offsets debug logic and updating
the perlreguts documentation, so I figured I might as well clean it up
at the same time.
pod/perlreguts.pod
regcomp.h