Cezary Morga wrote:
> Hi.
>
> I've noticed that generates wrong key when compiled with wxWidgets
> version 2.8.10:
>
> gtk2_2_8_1_uni_gcc_3_4
>
> I'm refering to wxWidgets version part. It should be 2_8_10 but
> because of _version_2_dec convertion the trailing zero is removed.
>
> I couldn't come out with a way to fix this issue, so I decided to ask
> here, have you got an idea hwo to make in create correct key?
OK, I've come out with something. How about following?
--- inc/My/Build/Base.pm.orig 2009-03-21 00:11:09.000000000 +0100
+++ inc/My/Build/Base.pm 2009-03-21 00:11:36.000000000 +0100
@@ -108,7 +108,7 @@
$ver =~ m/^(\d+)\.(\d+)\.(\d+)$/ and
$dec = $1 + $2 / 1000 + $3 / 1000000;
- return $dec;
+ return sprintf( "%.6f", $dec );
}
sub _init_config {
--
Cezary Morga
"Television enables you to be entertained in your home by people you
wouldn't have in your home." (David Frost)