Skip to content

Commit

Permalink
windows/unpack: fix the version-to-number function
Browse files Browse the repository at this point in the history
It used a plus ('+') instead of multiplication ('*') which made 8.11.0_4
sort above 8.11.1_0 ...

Closes #413
  • Loading branch information
bagder committed Dec 11, 2024
1 parent 558fa0b commit 6ddfb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/unpack.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6ddfb6d

Please sign in to comment.