Stop substr re optimisation from rejecting long strs
authorFather Chrysostomos <sprout@cpan.org>
Wed, 31 Jul 2013 06:49:58 +0000 (23:49 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 25 Aug 2013 19:23:59 +0000 (12:23 -0700)
commit49f55535e0b402f8cbdf839b5f2c88306c91a31d
tree53d85774d91296f9ee177a27425e7be58dcf2dd7
parenta10eae290937db109954431d254a9a25287f190b
Stop substr re optimisation from rejecting long strs

Using I32 for the fields that record information about the location of
a fixed string that must be found for a regular expression to match
can result in match failures, because I32 is not large enough to store
offsets >= 2**31.

SSize_t is appropriate, since it is 64 bits on 64-bit platforms and 32
bits on 32-bit platforms.

This commit changes enough instances of I32 to SSize_t to get the
added test passing and suppress compiler warnings.  A later commit
will change many more.
embed.fnc
proto.h
regcomp.c
regexec.c
regexp.h
t/bigmem/regexp.t