fix warning
authorSimon Marlow <marlowsd@gmail.com>
Thu, 16 Dec 2010 16:04:15 +0000 (16:04 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 16 Dec 2010 16:04:15 +0000 (16:04 +0000)
rts/Threads.c

index e86630e..dcb916a 100644 (file)
@@ -667,7 +667,7 @@ threadStackUnderflow (Capability *cap, StgTSO *tso)
     if (retvals != 0)
     {
         // we have some return values to copy to the old stack
-        if ((new_stack->sp - new_stack->stack) < retvals)
+        if ((nat)(new_stack->sp - new_stack->stack) < retvals)
         {
             barf("threadStackUnderflow: not enough space for return values");
         }