ThrowTheSwitch / Unity

Simple Unit Testing for C
ThrowTheSwitch.org
MIT License
4.02k stars 969 forks source link

fix: TEST_PRINTF(): printing 64-bit hex numbers or pointers #694

Closed cmachida closed 1 year ago

cmachida commented 1 year ago

Hi there,

Thank you for the Unity project!!

We have a UNITY_SUPPORT_64 system and noticed that %llu works fine, but %llx and %p still print out 32 bits. Can this patch be applied, or something better be applied to address this issue?

Thanks, Curtis Machida

References: https://github.com/ThrowTheSwitch/Unity/blob/master/docs/UnityConfigurationGuide.md https://github.com/ThrowTheSwitch/Unity/issues/693

paulopacitti commented 1 year ago

Also facing this issue, checked the code, seems fine to me 👍

mvandervoord commented 1 year ago

Thanks @cmachida for the work... and thanks for the validation @paulopacitti !