AUD arguments to variable argument external functions go unchecked
Bugzilla Link | 627 |
Created on | Dec 15, 2009 17:52 |
Resolution | DUPLICATE |
Resolved on | Jul 29, 2011 09:55 |
Version | svn |
OS | All |
Architecture | PC |
Extended Description
The source code for my bug reports has gotten a bit big lately. Here's a smaller program: use StdIO:all; int main() { printf("%f\n", FibreScanDoubleArray()); return( 0); } Run the program and type 6. For me the value printed back is 0! Change the line to the following: printf("%f\n", (:double)FibreScanDoubleArray()); and all is fine. Should we be limiting arguments to variable length functions to scalars checking that the arguments are known to be scalar types? Using printf to debug only to be printing out random data is extremely infuriating!