Permalink
Browse files

MKINT is missing a bracket which causes the (void *) cast to happen b…

…efore the addition
  • Loading branch information...
1 parent fa31af1 commit 41cef1daa297373aa22db012e2d1183f486f7be4 @avsm avsm committed Apr 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 evm/closure.h
View
@@ -173,7 +173,7 @@ VAL CLOSURE_APPLY5(VAL x, VAL a1, VAL a2, VAL a3, VAL a4, VAL a5);
// array of zero arity constructors. We don't need more than one of each...
extern VAL* zcon;
-#define MKINT(x) ((void*)((x)<<1)+1)
+#define MKINT(x) ((void*)(((x)<<1)+1))
#define GETINT(x) ((eint)(x)>>1)
#define GETPTR(x) ((void*)(((VAL)(x))->info))
#define GETSTR(x) ((char*)(((VAL)(x))->info))

0 comments on commit 41cef1d

Please sign in to comment.