mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
fb86ca6e33
== DETAILS So, basically this back-and-forth is because we used fixed-size data types (i.e. `uint32_t`) which maps to different primitive data types on different platforms. So `uint32_t` might be a `long` on some platforms (e.g. Wii U), while it's just a plain integer on others (PC). And the format specifier works off primitive data type, not data type size. So, to resolve this, we: - keep `%lx` as the format specifier - cast the parameter to printf to unsigned long This is better than the alternatives that could cause problems trying to cast a long down to an int.