libwine: Fix a pointer comparison warning.

This commit is contained in:
Alexandre Julliard 2010-11-17 15:07:30 +01:00
parent d70b3e5929
commit 7a7b60098f
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ static int apple_alloc_thread_stack( void *base, size_t size, void *arg )
* of the address space causes subsequent execs to fail, even on the
* child side of a fork. Avoid the top 16MB. */
char * const limit = (char*)0xff000000;
if (base >= limit) return 0;
if ((char *)base >= limit) return 0;
if (size > limit - (char*)base)
size = limit - (char*)base;
if (size < info->desired_size) return 0;