From 36ba43d6ea38062b17f7e63ef659962bfc51c64d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Jun 2017 23:34:34 +0300 Subject: Fix clang-tidy check readability-implicit-bool-cast. --- src/input/joystick.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/input/joystick.h') diff --git a/src/input/joystick.h b/src/input/joystick.h index 0238285aa..4088cc84c 100644 --- a/src/input/joystick.h +++ b/src/input/joystick.h @@ -99,16 +99,16 @@ class Joystick final bool buttonPressed(const unsigned char no) const A_WARN_UNUSED; bool isUp() const noexcept2 A_WARN_UNUSED - { return mEnabled && (mDirection & UP); } + { return mEnabled && ((mDirection & UP) != 0); } bool isDown() const noexcept2 A_WARN_UNUSED - { return mEnabled && (mDirection & DOWN); } + { return mEnabled && ((mDirection & DOWN) != 0); } bool isLeft() const noexcept2 A_WARN_UNUSED - { return mEnabled && (mDirection & LEFT); } + { return mEnabled && ((mDirection & LEFT) != 0); } bool isRight() const noexcept2 A_WARN_UNUSED - { return mEnabled && (mDirection & RIGHT); } + { return mEnabled && ((mDirection & RIGHT) != 0); } int getNumber() const noexcept2 A_WARN_UNUSED { return mNumber; } -- cgit v1.2.3-60-g2f50