three dots as arguments unsafer than expected
|
|
Bugzilla Link |
521 |
Created on |
Jul 07, 2009 14:45 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Attachments |
tutu.sac |
Extended Description
Created an attachment (id=549)
source code
compile with -maxspec 0 and the 5.0 will be printed as 0.0000.
The reason for this is that the scalar value comes as AUD and therefore
in boxed form. As it is in ... position of printf, precompile cannot
insert appropriate casts to make sure an unboxed double is passed to the
actual printf implementation.
inlining or specialisations obviously make this problem go away....