mfld-fr / emu86

Intel IA16 emulator for embedded development
35 stars 6 forks source link

Fix macOS printf format warning #65

Closed ghaerr closed 3 years ago

ghaerr commented 3 years ago

Portable fix for clang and gcc as requested in https://github.com/mfld-fr/emu86/issues/59#issuecomment-838240003. Fixes #59.

With this change, warnings as errors can be turned back on via -Werror.

mfld-fr commented 3 years ago

Dirty but efficient. Superseded by commit 685f29f with a 'little bit less dirty' cast (GCC reports that lX expects an 'unsigned long int').