Commit 4dfd46fec7 for perl
commit 4dfd46fec75ae52078656c33883cc42adab7673d
Author: Yves Orton <demerphq@gmail.com>
Date: Mon Nov 16 16:52:34 2026 +0100
Configure: fix memset arguments in the floating-point zero probe
Clang warns that the memset() size and fill-byte arguments are reversed.
With -Werror this makes Configure reject the floating-point zero probe.
Swap the arguments so it clears the whole value.
diff --git a/Configure b/Configure
index 1c3a02752c..79b89c2375 100755
--- a/Configure
+++ b/Configure
@@ -17304,7 +17304,7 @@ int main(int argc, char **argv) {
fail += checkit(d, "ternary");
- memset(&d, sizeof(d), argv[argc] ? 1 : 0);
+ memset(&d, argv[argc] ? 1 : 0, sizeof(d));
if (d != 0.0) {
printf("No - memset doesn't give 0.0\n");