Followup to r44844: use a better cast (intptr_t instead of long long).

svn path=/trunk/; revision=44880
This commit is contained in:
Jeff Morriss 2012-09-11 13:11:33 +00:00
parent 7f66cae784
commit 42623443ed
1 changed files with 2 additions and 2 deletions

View File

@ -703,8 +703,8 @@ emem_create_chunk_gp(size_t size)
buf_end = npc->buf + size;
/* Align our guard pages on page-sized boundaries */
prot1 = (char *) ((((long long) npc->buf + pagesize - 1) / pagesize) * pagesize);
prot2 = (char *) ((((long long) buf_end - (1 * pagesize)) / pagesize) * pagesize);
prot1 = (char *) ((((intptr_t) npc->buf + pagesize - 1) / pagesize) * pagesize);
prot2 = (char *) ((((intptr_t) buf_end - (1 * pagesize)) / pagesize) * pagesize);
ret = VirtualProtect(prot1, pagesize, PAGE_NOACCESS, &oldprot);
g_assert(ret != 0 || versinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS);