anotherlin/z80emu — pull request #1 by catseye (2012-10-30 23:55:01+00:00)
Title: Silence compiler warnings

Hello,

Thank you for writing this! I've been looking for a Z80 CPU emulator under a permissive license for a while (most are GPL'ed at best.)

I don't know if you're interested in maintaining this, but if you are, this change silences some compiler warnings on my system (Ubuntu 12.04 with gcc 4.6.3.)

`inttypes.h` is technically not ANSI C (it's C99), but it doesn't conflict with ANSI C either, and it still compiles with the `-ansi -pedantic` flags. I don't know if `_MSC_VER` understands the `PRId64` format specifier macro. I guess the other option would be to store all the stats as doubles, since total precision is not really needed for them.