Commit 7a7b6009 authored by Alexandre Julliard's avatar Alexandre Julliard

libwine: Fix a pointer comparison warning.

parent d70b3e59
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment