Explorar o código

typecast away a signed/unsigned warning

Mike Frysinger %!s(int64=20) %!d(string=hai) anos
pai
achega
f093cd523b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libpthread/linuxthreads.old/manager.c

+ 1 - 1
libpthread/linuxthreads.old/manager.c

@@ -381,7 +381,7 @@ static int pthread_allocate_stack(const pthread_attr_t *attr,
          attributes (stack_size = STACK_SIZE - pagesize) do not need
 	 a guard page, since the RLIMIT_STACK soft limit prevents stacks
 	 from running into one another. */
-      if (stacksize == STACK_SIZE - pagesize)
+      if (stacksize == (size_t) (STACK_SIZE - pagesize))
         {
           /* We don't need a guard page. */
           guardaddr = NULL;