X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FAdjustor.c;h=607c0b8abebacba0b6338c29eecb4d68267afc76;hb=8625c675de45bdb8bcfa795572ce7c47687c147c;hp=dd974e20906edf73a3ecfe8d58440a97ebf8b9bf;hpb=ae75dfb80ccffcdb8d96d53508731214f7cb7305;p=ghc-hetmet.git diff --git a/rts/Adjustor.c b/rts/Adjustor.c index dd974e2..607c0b8 100644 --- a/rts/Adjustor.c +++ b/rts/Adjustor.c @@ -111,7 +111,7 @@ createAdjustor (int cconv, arg_types[i] = char_to_ffi_type(typeString[i+1]); } switch (cconv) { -#ifdef mingw32_TARGET_OS +#ifdef mingw32_HOST_OS case 0: /* stdcall */ abi = FFI_STDCALL; break; @@ -225,7 +225,7 @@ stgAllocStable(size_t size_in_bytes, StgStablePtr *stable) /* allocate and fill it in */ arr = (StgArrWords *)allocate(total_size_in_words); - SET_ARR_HDR(arr, &stg_ARR_WORDS_info, CCCS, data_size_in_words); + SET_ARR_HDR(arr, &stg_ARR_WORDS_info, CCCS, size_in_bytes); /* obtain a stable ptr */ *stable = getStablePtr((StgPtr)arr);