From 1cbf9c32e992343524d52593e993db7ad2d8e822 Mon Sep 17 00:00:00 2001 From: "jean.chalard" Date: Sun, 18 Jan 2009 14:12:09 +0000 Subject: [PATCH] J : * Fix a macro that was missing parentheses. --- JGE/include/JTypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JGE/include/JTypes.h b/JGE/include/JTypes.h index 9ea9c5780..91849cd3b 100644 --- a/JGE/include/JTypes.h +++ b/JGE/include/JTypes.h @@ -121,8 +121,8 @@ typedef uint32_t u32; #define BLEND_ONE_MINUS_DST_COLOR GL_ONE_MINUS_DST_COLOR #define BLEND_SRC_ALPHA_SATURATE GL_SRC_ALPHA_SATURATE - #define ARGB(a, r, g, b) ((a << 24) | (r << 16) | (g << 8) | b) - #define RGBA(r, g, b, a) ((a << 24) | (b << 16) | (g << 8) | r) + #define ARGB(a, r, g, b) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) + #define RGBA(r, g, b, a) (((a) << 24) | ((b) << 16) | ((g) << 8) | (r)) typedef enum PspCtrlButtons {