diff options
author | Simon Marlow <simonmar@microsoft.com> | 2006-04-18 14:42:14 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2006-04-18 14:42:14 +0000 |
commit | b3edde6c4e5f0e989db717710729af532ade882f (patch) | |
tree | d9937ca6d2d215c0afaf39ee2a741840fde9eea6 /includes/HsFFI.h | |
parent | ceaa116940587d4ea2e2104e3c3313002d852659 (diff) | |
download | haskell-b3edde6c4e5f0e989db717710729af532ade882f.tar.gz |
HsBool should be HsInt, not StgBool
StgBool is mapped to C's int type. GHC doesn't currently know the
size of a C int on the target arch, it's easier to use StgInt instead.
I guess nobody ever uses Bool arguments to foreign imports/exports.
Diffstat (limited to 'includes/HsFFI.h')
-rw-r--r-- | includes/HsFFI.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/HsFFI.h b/includes/HsFFI.h index 70891a2dc2..cd9f7ede80 100644 --- a/includes/HsFFI.h +++ b/includes/HsFFI.h @@ -81,7 +81,7 @@ typedef StgWord32 HsWord32; typedef StgWord64 HsWord64; typedef StgFloat HsFloat; typedef StgDouble HsDouble; -typedef StgBool HsBool; +typedef StgInt HsBool; typedef void* HsPtr; /* this should better match StgAddr */ typedef void (*HsFunPtr)(void); /* this should better match StgAddr */ typedef void* HsForeignPtr; /* ... and this StgForeignPtr */ |