nepx / halfix

x86 PC emulator that runs both natively and in the browser, via WebAssembly
https://nepx.github.io/halfix-demo/
GNU General Public License v3.0
669 stars 86 forks source link

Update `src/hardware/apic.c` fix format string errors on M1 Mac #34

Open JoeMatt opened 1 year ago

JoeMatt commented 1 year ago

This line caused compile issue with long with llu.

image

An alternative solution would be hard casting the args to (long).

APIC_LOG("  timer period %ld cur=%ld next=%ld\n", (long)apic_get_period(), (long)now, (long)apic.timer_next);