From 6ddfb6df5630ec75c48491b4ff6640e06e6bceff Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 11 Dec 2024 11:57:45 +0100 Subject: [PATCH] windows/unpack: fix the version-to-number function It used a plus ('+') instead of multiplication ('*') which made 8.11.0_4 sort above 8.11.1_0 ... Closes #413 --- windows/unpack.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/unpack.pl b/windows/unpack.pl index 14afe6f188..ebecdeac7f 100755 --- a/windows/unpack.pl +++ b/windows/unpack.pl @@ -12,7 +12,7 @@ sub num { my ($t)=@_; if($t =~ /.*(\d)\.(\d+)\.(\d+)_(\d+)/) { - return 1000000*$1 + 10000*$2 + 100+$3 + $4; + return 1000000*$1 + 10000*$2 + 100*$3 + $4; } return 0; }