Skip to content

Commit

Permalink
only test large indx if >32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 6, 2025
1 parent b6ae6fd commit 1eee2c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/ops.t
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ SKIP:
#and for big numbers (bigger than INT_MAX=2147483647)
my $INT_MAX = 2147483647;
cmp_ok long($INT_MAX)%1 , '==', 0, "big long modulus: $INT_MAX % 1";
cmp_ok indx($INT_MAX*4)%2 , '==', 0, "big indx modulus: @{[$INT_MAX*4]} % 2";
if ($Config{ptrsize} > 4) {
cmp_ok indx($INT_MAX*4)%2 , '==', 0, "big indx modulus: @{[$INT_MAX*4]} % 2";
}
cmp_ok longlong($INT_MAX*4)%2, '==', 0, "big longlong modulus: @{[$INT_MAX*4]} % 2";
cmp_ok ulonglong($INT_MAX*4)%2, '==', 0, "big ulonglong modulus: @{[$INT_MAX*4]} % 2";
#skip float intentionally here, since float($INT_MAX)!=$INT_MAX
Expand Down

0 comments on commit 1eee2c3

Please sign in to comment.