Fix a warning
authorSimon Marlow <marlowsd@gmail.com>
Tue, 16 Sep 2008 13:09:22 +0000 (13:09 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 16 Sep 2008 13:09:22 +0000 (13:09 +0000)
rts/Linker.c

index e5a5ae6..69b21a2 100644 (file)
@@ -1633,7 +1633,7 @@ static int ocAllocateSymbolExtras( ObjectCode* oc, int count, int first )
             return 0;
         }
 #ifdef x86_64_HOST_ARCH
-        if (oc->symbol_extras > 0x80000000)
+        if ((StgWord)oc->symbol_extras > 0x80000000)
         {
             barf("mmap() returned memory outside 2Gb");
         }