From 905bf9b330a8e327c04839d507dba009922ea759 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 28 Feb 2020 14:28:39 -0500 Subject: [PATCH] Issue #351 - Avoid compiler warnings from clang --- include/cyclone/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index 7eedefad..f659a865 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -606,7 +606,7 @@ typedef uint32_t char_type; * Convert from an integer to an object. */ //#define obj_int2obj(n) ((void *) ((((long)(n))*(long)(1uL<<1)) | 1)) -#define obj_int2obj(c) ((void *)((((long)c)<<1) | 1)) +#define obj_int2obj(c) ((void *)((((long)c)*2) | 1)) /** * Determine if the object is a char.