It may be a bug in gcc that is causing the problem, but code that is
sloppy about types is never good coding practice. If the scale
values are calculated as doubles, then double should be the type for
the variable. That's an upstream issue, but it's affecting Debian
users and there's a single line patch for it.
Just my $0.02, unasked for but offered anyway. :)
Joseph