Mercurial > hg > xemacs-beta
diff src/ntheap.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | abe6d1db359e |
children | a307f9a2021d |
line wrap: on
line diff
--- a/src/ntheap.c Wed Aug 08 12:15:04 2001 +0000 +++ b/src/ntheap.c Mon Aug 13 04:46:48 2001 +0000 @@ -237,7 +237,7 @@ DWORD size; unsigned char* base = get_heap_end (); unsigned char* end = base + get_reserved_heap_size () - get_committed_heap_size (); - VirtualQuery (base, &info, sizeof info); + VirtualQuery (base, &info, sizeof (info)); if (info.State != MEM_FREE) { /* Oops, something has already reserved or commited it, nothing we can do but exit */ @@ -253,7 +253,7 @@ } /* Now try and reserve as much as possible */ - size = min (info.RegionSize, end - base); + size = min (info.RegionSize, (DWORD) (end - base)); tmp = VirtualAlloc (base, size, MEM_RESERVE, PAGE_NOACCESS); if (!tmp) {