Commit f408c38647 for perl
commit f408c3864793924763578412da6cea46cb04d2b8
Author: Yves Orton <demerphq@gmail.com>
Date: Mon Nov 16 16:52:34 2026 +0100
Configure: avoid an unsigned literal in the strtoll probe
Clang warns that the positive part of -9223372036854775808LL is
unsigned. With -Werror this makes the strtoll probe fail. Use
(-9223372036854775807LL - 1) for the minimum signed value.
diff --git a/Configure b/Configure
index 411e341797..b46c65d7b2 100755
--- a/Configure
+++ b/Configure
@@ -19939,12 +19939,12 @@ int main() {
check(" 1", 1LL, 0);
check(" 0", 0LL, 0);
check("-1", -1LL, 0);
- check("-9223372036854775808", -9223372036854775808LL, 0);
- check("-9223372036854775808", -9223372036854775808LL, 0);
+ check("-9223372036854775808", (-9223372036854775807LL - 1), 0);
+ check("-9223372036854775808", (-9223372036854775807LL - 1), 0);
check(" 9223372036854775807", 9223372036854775807LL, 0);
- check("-9223372036854775808", -9223372036854775808LL, 0);
+ check("-9223372036854775808", (-9223372036854775807LL - 1), 0);
check(" 9223372036854775808", 9223372036854775807LL, ERANGE);
- check("-9223372036854775809", -9223372036854775808LL, ERANGE);
+ check("-9223372036854775809", (-9223372036854775807LL - 1), ERANGE);
if (!bad)
printf("ok\n");
}