This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
APItest: Fix C++ compiles
authorKarl Williamson <khw@cpan.org>
Fri, 9 Feb 2018 17:10:47 +0000 (10:10 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 9 Feb 2018 17:19:12 +0000 (10:19 -0700)
commite0280e4921cf0b53edc3e4790ff6f201046adcbc
tree7efc0b0198899b9758d0dc02473cc6a57c2e1c6a
parent0a9f8f95112ff40e13406b3e5aab49c01487f045
APItest: Fix C++ compiles

0a9f8f95112ff40e13406b3e5aab49c01487f045 introduced failures on C++
compilations.  This is a better patch, suggested by ilmari.

The issue was in cases where the pointer size is 32 bits and the word
size was 64, a (STRLEN) -1 returned as an error was getting turned into
0xFFFFFFFF instead of -1.
ext/XS-APItest/APItest.xs