Re: [AD] PATCH: updated mprotect patch for allegro-4.2.1 which also work on Linux |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] PATCH: updated mprotect patch for allegro-4.2.1 which also work on Linux
- From: Chris <chris.kcat@xxxxxxxxxx>
- Date: Sun, 12 Mar 2006 01:23:09 -0800
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=HXjxeXVRodBrwYw+5m6yHLeV6T5qIVgONo/sK30sB3i0j+3I3ImYrUSlafgbbXzG69yuQ7yb2MKXEd7UhyDI27ppZKtsDRa4fmzuIYiN4mWkimCyrJPOWAln+b5tGMbGmiwQzIA6R8He7t/KKkF8SHz3XNxRxukJ4iVg8dT+FyI=
On Sunday 12 March 2006 01:08, Hans de Goede wrote:
> + char *p = (char *)((unsigned long)_scratch_mem & ~(PAGE_SIZE-1ul));
C99 and Allegro define uintptr_t for casting pointers to int types. Would
probably be better if you used that instead.