+2016-12-19 Bruno Haible <bruno@clisp.org>
+
+ vma-iter: Fix endless loop on 64-bit Windows.
+ * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
+ 'unsigned long'.
+
2016-12-19 Bruno Haible <bruno@clisp.org>
stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
/* Windows platform. Use the native Windows API. */
MEMORY_BASIC_INFORMATION info;
- unsigned long address = 0;
+ uintptr_t address = 0;
while (VirtualQuery ((void*)address, &info, sizeof(info)) == sizeof(info))
{
distinguished from areas reserved for future malloc(). */
if (info.State != MEM_RESERVE)
{
- unsigned long start, end;
+ uintptr_t start, end;
unsigned int flags;
- start = (unsigned long)info.BaseAddress;
+ start = (uintptr_t)info.BaseAddress;
end = start + info.RegionSize;
switch (info.Protect & ~(PAGE_GUARD|PAGE_NOCACHE))
{
if (callback (data, start, end, flags))
break;
}
- address = (unsigned long)info.BaseAddress + info.RegionSize;
+ address = (uintptr_t)info.BaseAddress + info.RegionSize;
}
#elif defined __BEOS__ || defined __HAIKU__