Commit b4748f0dab for perl
commit b4748f0dab84eb2be5d61632dc5a82e34cee1322
Author: Tony Cook <tony@develop-help.com>
Date: Mon Oct 12 11:34:09 2026 +1100
Devel::PPPort: fix SSize_t_MAX test under -Duselongdouble
The test assumed UV-ness would be preserved, but pp_divide doesn't do
that when NV preserves all UV bits.
Change to a shift to preserve UV-ness.
Fixes #24939
diff --git a/dist/Devel-PPPort/Changes b/dist/Devel-PPPort/Changes
index 941a7bf4f0..aaa89c9e11 100644
--- a/dist/Devel-PPPort/Changes
+++ b/dist/Devel-PPPort/Changes
@@ -3,6 +3,7 @@ Revision history for Devel-PPPort
3.75
* add sv_set_undef
+ * fix a test failure with SSize_t_MAX with -Duselongdouble (#24939)
3.74
diff --git a/dist/Devel-PPPort/parts/inc/limits b/dist/Devel-PPPort/parts/inc/limits
index f61b83636e..a6b343a4dc 100644
--- a/dist/Devel-PPPort/parts/inc/limits
+++ b/dist/Devel-PPPort/parts/inc/limits
@@ -356,5 +356,5 @@ ok(&Devel::PPPort::uv_type());
ok(&Devel::PPPort::size_t_max());
ok(&Devel::PPPort::ssize_t_max());
ok(&Devel::PPPort::strlen_max());
-is((&Devel::PPPort::size_t_max()-1)/2, &Devel::PPPort::ssize_t_max());
+is(&Devel::PPPort::size_t_max()>>1, &Devel::PPPort::ssize_t_max());
is(&Devel::PPPort::size_t_max(), &Devel::PPPort::strlen_max());
\ No newline at end of file