-
-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
And __ltof implements a worse __ltof.
Example code demonstrating issue:
#include <ti/getcsc.h>
#include <ti/screen.h>
#include <limits.h>
#include <stdio.h>
void testl(long x) {
printf("%11li -> %11.0f", x, (float)x);
}
void testul(unsigned long x) {
printf("%11lu -> %11.0f", x, (float)x);
}
int main() {
os_ClrHome();
testl(LONG_MAX);
testl(LONG_MIN);
testl(ULONG_MAX);
os_NewLine();
testul(LONG_MAX);
testul(LONG_MIN);
testul(ULONG_MAX);
while (!os_GetCSC())
;
}