From 1a19fe393e8b4b57aad004e98244f6a41147c781 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 12 Jun 2014 12:16:44 +0000 Subject: [PATCH] gpu: fix an annoying Visual Studio warning in renderer.h. --- src/lol/gpu/renderer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lol/gpu/renderer.h b/src/lol/gpu/renderer.h index fd2fbdce..585e5925 100755 --- a/src/lol/gpu/renderer.h +++ b/src/lol/gpu/renderer.h @@ -40,7 +40,7 @@ static inline ClearMask operator |(ClearMask const &a, ClearMask const &b) static inline bool operator &(ClearMask const &a, ClearMask const &b) { - return (bool)((uint8_t)a & (uint8_t)b); + return !!((uint8_t)a & (uint8_t)b); } /* A safe enum to indicate the blend equation. */