Commit ae8fc4d5 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

Added a workaround for format specifier mismatch

parent f4510d27
......@@ -32,6 +32,13 @@ typedef struct _Info {
struct _Info *next;
} Info;
// This is a cruel hack, we should completely redesign the format specifier handling in the RTS.
#if SIZEOF_LONG == 8
#define PRIuWORD64 "lu"
#else
#define PRIuWORD64 "llu"
#endif
Info *modules = 0;
Info *nextModule = 0;
StgWord64 *tixBoxes = 0; // local copy of tixBoxes array, from file.
......@@ -314,7 +321,7 @@ exitHpc(void) {
}
if (tmpModule->tixArr) {
fprintf(f,"%lld",tmpModule->tixArr[i]);
fprintf(f,"%" PRIuWORD64,tmpModule->tixArr[i]);
} else {
fprintf(f,"0");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment