FIX BUILD (on 32-bit platforms): hs_hpc_module() type mismatch
authorSimon Marlow <simonmar@microsoft.com>
Tue, 23 Oct 2007 08:22:33 +0000 (08:22 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 23 Oct 2007 08:22:33 +0000 (08:22 +0000)
rts/Hpc.c

index aa7ffe9..3922d44 100644 (file)
--- a/rts/Hpc.c
+++ b/rts/Hpc.c
@@ -186,8 +186,8 @@ static void hpc_init(void) {
 
 int
 hs_hpc_module(char *modName,
-             unsigned int modCount,
-             unsigned int modHashNo,
+             StgWord32 modCount,
+             StgWord32 modHashNo,
              StgWord64 *tixArr) {
   HpcModuleInfo *tmpModule, *lastModule;
   unsigned int i;
@@ -284,8 +284,8 @@ writeTix(FILE *f) {
     }
     fprintf(f," TixModule \"%s\" %u %u [",
           tmpModule->modName,
-           tmpModule->hashNo,
-           tmpModule->tickCount);
+           (nat)tmpModule->hashNo,
+           (nat)tmpModule->tickCount);
     debugTrace(DEBUG_hpc,"%s: %u (offset=%u) (hash=%u)\n",
               tmpModule->modName,
               tmpModule->tickCount,