force tag_arity and ty to be uint32_t instead of system dependent int sizes.
commit48aa599fbafb9a53b495f3c701b9aefcdd41360d
authorstepcut <jeremy@n-heptane.com>
dateMon 10 Mar 2014, 17:09 (13 years ago)
parent8a0beab
rts/idris_rts.h+5−2
@@ -24,7 +24,7 @@ typedef enum {
2424typedef struct Closure *VAL;
2525
2626typedef struct {
27− int tag_arity;
27+ uint32_t tag_arity;
2828 VAL args[];
2929} con;
3030
@@ -50,7 +50,10 @@ typedef struct {
5050typedef struct Closure {
5151// Use top 16 bits of ty for saying which heap value is in
5252// Bottom 16 bits for closure type
53− ClosureType ty;
53+//
54+// NOTE: ty can not have type ClosureType because ty must be a
55+// uint32_t but enum is platform dependent
56+ uint32_t ty;
5457 union {
5558 con c;
5659 int i;