forked from osmocom/wireshark
As suggested by Anatoly in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5699 :
Followup to r44844: use a better cast (intptr_t instead of long long). svn path=/trunk/; revision=44880
This commit is contained in:
parent
7f66cae784
commit
42623443ed
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue