summaryrefslogtreecommitdiff
path: root/includes/HsFFI.h
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-04-18 14:42:14 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-04-18 14:42:14 +0000
commitb3edde6c4e5f0e989db717710729af532ade882f (patch)
treed9937ca6d2d215c0afaf39ee2a741840fde9eea6 /includes/HsFFI.h
parentceaa116940587d4ea2e2104e3c3313002d852659 (diff)
downloadhaskell-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.h2
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 */