diff options
author | sven.panne@aedion.de <unknown> | 2006-11-10 16:26:16 +0000 |
---|---|---|
committer | sven.panne@aedion.de <unknown> | 2006-11-10 16:26:16 +0000 |
commit | ae8fc4d5492af76e7938f797142a3483afa7a770 (patch) | |
tree | 98a5affe4e0f8d3253451d5b0a6cb10266283123 /rts/Hpc.c | |
parent | f4510d27c5883fe7e8570f4dd49d45a8b0122f2c (diff) | |
download | haskell-ae8fc4d5492af76e7938f797142a3483afa7a770.tar.gz |
Added a workaround for format specifier mismatch
Diffstat (limited to 'rts/Hpc.c')
-rw-r--r-- | rts/Hpc.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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"); } |