-
Notifications
You must be signed in to change notification settings - Fork 388
Open
Labels
enhancementNew feature or requestNew feature or request
Description
In core_main.c, the results of time_in_secs is printed using the %d format specifier, which handles arguments of type int.
However type secs_ret is type ee_u32, which is not int-sized on 16-bit platforms (for which I'm working on an LLVM port :) ).
I got lucky in that my platform is little endian, so the low order 16-bits that will be read by %d are the ones that I want, and there aren't any arguments after the problematic %d's.
Three ways off the top of my head to fix this:
- Cast to int before the format specifier.
- Use the C99 format specifier macros for uint32_t.
- Create an EEMBC-specific version of the above macro and add it to the port headers.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request