diff options
Diffstat (limited to 'rts')
-rw-r--r-- | rts/Threads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/Threads.c b/rts/Threads.c index 8b05dd7c50..cce32ca2b3 100644 --- a/rts/Threads.c +++ b/rts/Threads.c @@ -161,7 +161,7 @@ cmp_thread(StgPtr tso1, StgPtr tso2) * * This is used in the implementation of Show for ThreadIds. * ------------------------------------------------------------------------ */ -int +long rts_getThreadId(StgPtr tso) { return ((StgTSO *)tso)->id; @@ -882,8 +882,8 @@ printThreadBlockage(StgTSO *tso) debugBelch("is blocked on an STM operation"); break; default: - barf("printThreadBlockage: strange tso->why_blocked: %d for TSO %d (%p)", - tso->why_blocked, tso->id, tso); + barf("printThreadBlockage: strange tso->why_blocked: %d for TSO %ld (%p)", + tso->why_blocked, (long)tso->id, tso); } } |