From 348b73eb83803e8b3618e80aeeb8e08992df708a Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 25 Jan 2017 03:45:57 +0100 Subject: [PATCH] Fix gcc warning --- src/swrenderer/plane/r_visibleplanelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swrenderer/plane/r_visibleplanelist.cpp b/src/swrenderer/plane/r_visibleplanelist.cpp index b774b2112..a91d4a019 100644 --- a/src/swrenderer/plane/r_visibleplanelist.cpp +++ b/src/swrenderer/plane/r_visibleplanelist.cpp @@ -137,7 +137,7 @@ namespace swrenderer } // New visplane algorithm uses hash table -- killough - hash = isskybox ? MAXVISPLANES : CalcHash(picnum.GetIndex(), lightlevel, height); + hash = isskybox ? ((unsigned)MAXVISPLANES) : CalcHash(picnum.GetIndex(), lightlevel, height); RenderPortal *renderportal = RenderPortal::Instance();