PikaPython
PikaPython copied to clipboard
Fix incorrect printf format specifier
PRI macros should be used for uintptr_t. Calling a printf-like function with the wrong type of arguments causes unpredictable behavior.
I am not sure if <inttypes.h> can be used on various embedded platforms, such as stm32 and other MCU SDKs. This requires some testing, and I will validate these platforms when I have time, so this pull request will be delayed. It would be even better if you could help with testing.
As <inttypes.h> was added to C99 and tested on mdk-arm and AIR, this PR would be merged.