summaryrefslogtreecommitdiffstats
path: root/src/bdd/reo/reo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bdd/reo/reo.h')
-rw-r--r--src/bdd/reo/reo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bdd/reo/reo.h b/src/bdd/reo/reo.h
index 1a31242a..24e12c32 100644
--- a/src/bdd/reo/reo.h
+++ b/src/bdd/reo/reo.h
@@ -171,9 +171,9 @@ struct _reo_man
};
// used to manipulate units
-#define Unit_Regular(u) ((reo_unit *)((unsigned long)(u) & ~01))
-#define Unit_Not(u) ((reo_unit *)((unsigned long)(u) ^ 01))
-#define Unit_NotCond(u,c) ((reo_unit *)((unsigned long)(u) ^ (c)))
+#define Unit_Regular(u) ((reo_unit *)((PORT_PTRUINT_T)(u) & ~01))
+#define Unit_Not(u) ((reo_unit *)((PORT_PTRUINT_T)(u) ^ 01))
+#define Unit_NotCond(u,c) ((reo_unit *)((PORT_PTRUINT_T)(u) ^ (c)))
#define Unit_IsConstant(u) ((int)((u)->lev == REO_CONST_LEVEL))
////////////////////////////////////////////////////////////////////////