Subject: | PositiveInt check is false for large ints |
The following tests demonstrate the issue:
use Test::More;
use Types::Standard 'Int';
use Types::Common::Numeric 'PositiveInt';
ok( PositiveInt->check( 2 ** 30 ), 'positive int' ); # pass
ok( PositiveInt->check( 2 ** 31 ), 'large positive int' ); # FAIL
ok( Int->check( 2 ** 31 ), 'large int' ); # pass
All of the tests will pass if I set PERL_TYPE_TINY_XS=0.
I'm also using Type-Tiny 1.000004.