From d331cbf43dfeecb64bfbae7c09148acb4e2a1037 Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Sat, 27 Aug 2016 21:44:39 -0700 Subject: [PATCH] Ensure macro parameter is parenthesized. --- src/vm/wren_value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/wren_value.h b/src/vm/wren_value.h index d85297a9..001388a2 100644 --- a/src/vm/wren_value.h +++ b/src/vm/wren_value.h @@ -61,7 +61,7 @@ // These macros promote a primitive C value to a full Wren Value. There are // more defined below that are specific to the Nan tagged or other // representation. -#define BOOL_VAL(boolean) (boolean ? TRUE_VAL : FALSE_VAL) // boolean +#define BOOL_VAL(boolean) ((boolean) ? TRUE_VAL : FALSE_VAL) // boolean #define NUM_VAL(num) (wrenNumToValue(num)) // double #define OBJ_VAL(obj) (wrenObjectToValue((Obj*)(obj))) // Any Obj___*