From: Holger Schemel Date: Sun, 16 Oct 2022 10:57:51 +0000 (+0200) Subject: added explicit operator precedence (stylistic only) X-Git-Tag: 4.3.3.0~54 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b3cc0aa4f60d78c12ae98ed7da42601e7bad16b4;p=rocksndiamonds.git added explicit operator precedence (stylistic only) This issue was found by Cppcheck (static C/C++ code analysis tool). --- diff --git a/src/anim.c b/src/anim.c index 8a1264c2..c4952d70 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1177,12 +1177,12 @@ static boolean isClickedPart(struct GlobalAnimPartControlInfo *part, static boolean clickBlocked(struct GlobalAnimPartControlInfo *part) { - return (part->control_info.style & STYLE_BLOCK ? TRUE : FALSE); + return ((part->control_info.style & STYLE_BLOCK) ? TRUE : FALSE); } static boolean clickConsumed(struct GlobalAnimPartControlInfo *part) { - return (part->control_info.style & STYLE_PASSTHROUGH ? FALSE : TRUE); + return ((part->control_info.style & STYLE_PASSTHROUGH) ? FALSE : TRUE); } static void InitGlobalAnim_Triggered(struct GlobalAnimPartControlInfo *part,