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();