diff --git a/lib/System/Unix/Signals.inc b/lib/System/Unix/Signals.inc index abb6a336377..9c1050cf8a0 100644 --- a/lib/System/Unix/Signals.inc +++ b/lib/System/Unix/Signals.inc @@ -97,7 +97,8 @@ static void PrintStackTrace() { if (name == NULL) fprintf(stderr, " %-*s", width, dlinfo.dli_fname); else fprintf(stderr, " %-*s", width, name+1); - fprintf(stderr, " %#0*x", (int)(sizeof(void*) * 2) + 2, StackTrace[i]); + fprintf(stderr, " %#0*lx", + (int)(sizeof(void*) * 2) + 2, (unsigned long)StackTrace[i]); if (dlinfo.dli_sname != NULL) { int res;