Skip to content

Commit

Permalink
Fix long->sqIntptr_t forgotten in platforms/win32/vm
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-cellier-aka-nice committed Jul 18, 2016
1 parent 7d278c0 commit f0af02e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions platforms/win32/vm/sqWin32Alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ int sqMemoryExtraBytesLeft(int includingSwap) {

# if COGVM
void
sqMakeMemoryExecutableFromTo(unsigned long startAddr, unsigned long endAddr)
sqMakeMemoryExecutableFromTo(usqIntptr_t startAddr, usqIntptr_t endAddr)
{
DWORD previous;

Expand All @@ -188,7 +188,7 @@ sqMakeMemoryExecutableFromTo(unsigned long startAddr, unsigned long endAddr)
}

void
sqMakeMemoryNotExecutableFromTo(unsigned long startAddr, unsigned long endAddr)
sqMakeMemoryNotExecutableFromTo(usqIntptr_t startAddr, usqIntptr_t endAddr)
{
DWORD previous;

Expand Down
4 changes: 2 additions & 2 deletions platforms/win32/vm/sqWin32Main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2029,9 +2029,9 @@ parseArguments(int argc, char *argv[])
int
isCFramePointerInUse()
{
extern unsigned long CStackPointer, CFramePointer;
extern usqIntptr_t CStackPointer, CFramePointer;
extern void (*ceCaptureCStackPointers)(void);
unsigned long currentCSP = CStackPointer;
usqIntptr_t currentCSP = CStackPointer;

currentCSP = CStackPointer;
ceCaptureCStackPointers();
Expand Down
6 changes: 3 additions & 3 deletions platforms/win32/vm/sqWin32SpurAlloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void *
sqAllocateMemory(usqInt minHeapSize, usqInt desiredHeapSize)
{
char *hint, *address, *alloc;
unsigned long alignment;
usqIntptr_t alignment;
sqInt allocBytes;
SYSTEM_INFO sysInfo;

Expand Down Expand Up @@ -105,7 +105,7 @@ sqAllocateMemory(usqInt minHeapSize, usqInt desiredHeapSize)
#define SizeForRelease(bytes) 0

static int
address_space_used(char *address, unsigned long bytes)
address_space_used(char *address, usqInt bytes)
{
MEMORY_BASIC_INFORMATION info;
int addressSpaceUnused;
Expand All @@ -128,7 +128,7 @@ void *
sqAllocateMemorySegmentOfSizeAboveAllocatedSizeInto(sqInt size, void *minAddress, sqInt *allocatedSizePointer)
{
char *address, *alloc;
long bytes, delta;
usqInt bytes, delta;

address = (char *)roundUpToPage((usqIntptr_t)minAddress);
bytes = roundUpToPage(size);
Expand Down

0 comments on commit f0af02e

Please sign in to comment.