projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
831e2ed
)
define HS_WORD_MAX
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 19 Nov 2009 14:01:43 +0000
(14:01 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 19 Nov 2009 14:01:43 +0000
(14:01 +0000)
includes/HsFFI.h
patch
|
blob
|
history
diff --git
a/includes/HsFFI.h
b/includes/HsFFI.h
index
f489be5
..
dceabab
100644
(file)
--- a/
includes/HsFFI.h
+++ b/
includes/HsFFI.h
@@
-100,9
+100,11
@@
typedef void* HsStablePtr;
#if SIZEOF_VOID_P == 8
#define HS_INT_MIN __INT64_MIN
#define HS_INT_MAX __INT64_MAX
#if SIZEOF_VOID_P == 8
#define HS_INT_MIN __INT64_MIN
#define HS_INT_MAX __INT64_MAX
+#define HS_WORD_MAX __UINT64_MAX
#elif SIZEOF_VOID_P == 4
#define HS_INT_MIN __INT32_MIN
#define HS_INT_MAX __INT32_MAX
#elif SIZEOF_VOID_P == 4
#define HS_INT_MIN __INT32_MIN
#define HS_INT_MAX __INT32_MAX
+#define HS_WORD_MAX __UINT32_MAX
#else
#error GHC untested on this architecture: sizeof(void *) != 4 or 8
#endif
#else
#error GHC untested on this architecture: sizeof(void *) != 4 or 8
#endif