From 32446917d51a58096b94a590c39fa7fdfeb4463c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 3 Oct 2014 16:49:58 +0200 Subject: [PATCH] Fix BIND_PRESSED to silence warnings with PS3 compiler --- miscellaneous.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miscellaneous.h b/miscellaneous.h index 54843b063a..ff160843da 100644 --- a/miscellaneous.h +++ b/miscellaneous.h @@ -121,6 +121,6 @@ typedef struct #define BIT_GET(a, bit) ((a).data[(bit) >> 5] & (1 << ((bit) & 31))) #define BIT_CLEAR_ALL(a) memset(&(a), 0, sizeof(a)); -#define BIND_PRESSED(a, bit) ((a) & (1ULL << ((bit)))) +#define BIND_PRESSED(a, bit) (((a) & (1ULL << ((bit)))) == 1) #endif