[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] PML trouble with -m68020-60



Le 12/01/2011 23:22, Vincent Rivière wrote:
If someone calls a function returning a double without having provided a
prototype, the result is considered as int then casted to double.
The result is totally wrong, and by default GCC issues no warning :-(

I forgot to say there is a special case for the math.h functions.
Since GCC has "builtins" (well-known functions from the C library), it implicitly declares the prototype of all the math functions, so in practice there is no problem. But the problem remains when calling functions returning float or double, which are not the standard math.h functions.

--
Vincent Rivière