aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-10-10 00:28:08 +0200
committerBjörn-Egil Dahlberg <[email protected]>2012-10-10 01:42:31 +0200
commit219938165fb4f5f723c1ab606e8b8bdd4af2ae3b (patch)
tree4b638affe3a23e3f5818bda0e4f4b99194c17586 /erts/emulator/hipe
parentc2cb1197bdffff78a5604b6cbe5ce6da57ac7eaf (diff)
downloadotp-219938165fb4f5f723c1ab606e8b8bdd4af2ae3b.tar.gz
otp-219938165fb4f5f723c1ab606e8b8bdd4af2ae3b.tar.bz2
otp-219938165fb4f5f723c1ab606e8b8bdd4af2ae3b.zip
hipe: Cast offsetof to int in hipe_arch_print_pcb
* Silence compiler warning * This is the same style as the rest of the debug printing in hipe. Keeping to the same style, though changing the printing format would probably be better. Not a critical change.
Diffstat (limited to 'erts/emulator/hipe')
-rw-r--r--erts/emulator/hipe/hipe_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/hipe/hipe_x86.c b/erts/emulator/hipe/hipe_x86.c
index 24d232c968..4281730ae2 100644
--- a/erts/emulator/hipe/hipe_x86.c
+++ b/erts/emulator/hipe/hipe_x86.c
@@ -265,7 +265,7 @@ void *hipe_make_native_stub(void *beamAddress, unsigned int beamArity)
void hipe_arch_print_pcb(struct hipe_process_state *p)
{
#define U(n,x) \
- printf(" % 4d | %s | 0x%08x | |\r\n", offsetof(struct hipe_process_state,x), n, (unsigned)p->x)
+ printf(" % 4d | %s | 0x%08x | |\r\n", (int)offsetof(struct hipe_process_state,x), n, (unsigned)p->x)
U("ncsp ", ncsp);
U("narity ", narity);
#undef U