diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2018-03-02 14:19:58 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-03-02 15:41:04 -0500 |
commit | 4a0d0d8062a204b867fc510c50e69a056ce7636f (patch) | |
tree | 0168120d4d35fa80a4512934ffc331ce0ca502ff /rts/win32/OSMem.c | |
parent | aef2b429072e3d3bbdbcb9e4082a0d86ba329d9e (diff) | |
download | haskell-4a0d0d8062a204b867fc510c50e69a056ce7636f.tar.gz |
Various Windows / Cross Compile to Windows fixes
- Adds quick-cross-ncg flavour.
- Fix windows wchar with `_s` for mingw
- Lookup windres, dllwrap and objdump
- Fix type.
Reviewers: bgamari, hvr, Phyx, erikd, simonmar
Reviewed By: bgamari
Subscribers: rwbarton, thomie, erikd, carter
Differential Revision: https://phabricator.haskell.org/D4430
Diffstat (limited to 'rts/win32/OSMem.c')
-rw-r--r-- | rts/win32/OSMem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/win32/OSMem.c b/rts/win32/OSMem.c index c67b95be82..534cd15fa6 100644 --- a/rts/win32/OSMem.c +++ b/rts/win32/OSMem.c @@ -458,7 +458,7 @@ void *osReserveHeapMemory (void *startAddress, W_ *len) sysErrorBelch( "osReserveHeapMemory: VirtualAlloc MEM_RESERVE %llu bytes \ at address %p bytes failed", - len + MBLOCK_SIZE, startAddress); + *len + MBLOCK_SIZE, startAddress); } stg_exit(EXIT_FAILURE); } |