From c9a9e93c66cd875ed30a7df408ed8486f612c118 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Mon, 17 Oct 2016 11:54:03 +0200 Subject: [PATCH] Fix warning C4805: '!=': unsafe mix of type 'bool' and type 'int' in operation --- src/win32/hardware.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/hardware.cpp b/src/win32/hardware.cpp index d9de96566..e67d11842 100644 --- a/src/win32/hardware.cpp +++ b/src/win32/hardware.cpp @@ -75,7 +75,7 @@ bool changerenderer; // Software OpenGL canvas CUSTOM_CVAR(Bool, vid_used3d, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL) { - if (self != currentcanvas) + if ((self ? 1 : 0) != currentcanvas) Printf("You must restart " GAMENAME " for this change to take effect.\n"); }