-
Sorry, I should have added this in the bug (from the Ansi C Programming Language book, 2nd rev, page 159):
A.6.3 Integer and Floating
When a value of floating type is converted to integral type, the fractional part is discarded; if
the resulting value cannot be represented in the integral type, the behavior is undefined. In
particular, the result of converting negative floating values...
2007-06-19 17:52:56 UTC in Small Device C Compiler
-
The sdcc compiler contains many casts from double to unsigned int/long, and assumes that the value won't be clamped to a positive value.
Constructs like this, is used in many places:
... = (unsigned long) floatFromVal(...);
On MacOS (intel, and possible on other platforms using gcc and sse) this won't work since gcc will clamp the returned float to a value valid for an unsigned long...
2007-06-19 17:41:47 UTC in Small Device C Compiler
-
yasir committed patchset 18 of module common to the YasirsJunkyard CVS repository, changing 10 files.
2000-07-23 21:35:42 UTC in YasirsJunkyard
-
yasir committed patchset 17 of module common to the YasirsJunkyard CVS repository, changing 7 files.
2000-07-23 21:33:45 UTC in YasirsJunkyard
-
yasir committed patchset 16 of module common to the YasirsJunkyard CVS repository, changing 18 files.
2000-07-23 21:30:29 UTC in YasirsJunkyard
-
yasir committed patchset 15 of module common to the YasirsJunkyard CVS repository, changing 6 files.
2000-07-23 21:25:50 UTC in YasirsJunkyard
-
yasir committed patchset 14 of module common to the YasirsJunkyard CVS repository, changing 61 files.
2000-07-23 21:22:10 UTC in YasirsJunkyard
-
yasir committed patchset 7 of module translators to the YasirsJunkyard CVS repository, changing 14 files.
2000-07-23 21:12:24 UTC in YasirsJunkyard
-
yasir committed patchset 6 of module translators to the YasirsJunkyard CVS repository, changing 5 files.
2000-07-23 10:37:54 UTC in YasirsJunkyard
-
yasir committed patchset 5 of module libcpiacam to the BeCPiA CVS repository, changing 3 files.
2000-05-11 22:43:38 UTC in BeCPiA