Permalink
Browse files

Define W_TO_LONG in Cmm.h

  • Loading branch information...
1 parent 5e2409c commit 7ecb40e839f823f563d67b8b86270ac6d33e57d0 @igfoo igfoo committed Jun 20, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 includes/Cmm.h
View
@@ -197,6 +197,12 @@
#define W_TO_INT(x) (x)
#endif
+#if SIZEOF_LONG == 4 && SIZEOF_W == 8
+#define W_TO_LONG(x) %lobits32(x)
+#elif SIZEOF_LONG == SIZEOF_W
+#define W_TO_LONG(x) (x)
+#endif
+
/* -----------------------------------------------------------------------------
Heap/stack access, and adjusting the heap/stack pointers.
-------------------------------------------------------------------------- */

0 comments on commit 7ecb40e

Please sign in to comment.