Skip to content
Snippets Groups Projects
Commit 9d324b0a authored by Damien George's avatar Damien George
Browse files

stm: Add specific UINT_FMT and INT_FMT.

For some reason, STM port, while it's 32 bit, needs %lu and %ld for
printing machine_uint_t and machine_int_t.
parent 323f39a2
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@
#define BYTES_PER_WORD (4)
#define UINT_FMT "%lu"
#define INT_FMT "%ld"
typedef int32_t machine_int_t; // must be pointer size
typedef uint32_t machine_uint_t; // must be pointer size
typedef void *machine_ptr_t; // must be of pointer size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment