Commit 1d661de0943330b20a0b8dc938d17c0e742a2b89
authorSami Liedes <sliedes@cc.hut.fi>
Wed, 23 Feb 2011 00:03:13 +0000 (02:03 +0200)
committerMichel Pollet <buserror@gmail.com>
Wed, 23 Feb 2011 00:48:45 +0000 (00:48 +0000)
treee4c4296602242cf3768a5240d1f5e6cadbf96cbe
parent4ca5fe4e37ff264a11d83331df1efd552887fe22
Message:
Fix compilation on non-32-bit platforms.

The addition of -Werror to the compilation flags broke building on
64-bit hosts because casts between pointers and integers of different
sizes cause warnings on gcc -Wall. Fix this by always casting the
pointers to intptr_t first.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
simavr/sim/sim_io.c