2 ms·
> Converting a 64-bit floating point number to a 16-bit int is something a first year computer science student would be embarrassed about. Try enabling compile
by ahelwer 12y ago
> Converting a 64-bit floating point number to a 16-bit int is something a first year computer science student would be embarrassed about.
Try enabling compiler warnings on a legacy system sometime and let me know how many of those embarrassing errors you find :)
- cnvogel 12y agoProbably something along the lines of... (...) writing legacysystem_firmware.hex (387123 bytes) Build finished successfully, with 71245 warnings. Good look, finding the "unsigned short x = floatval;" line, that doesn't even trigger a warning in the first place ;-).