From f5ba74cd1015bd652301fb48bd7ee1f83044aeae Mon Sep 17 00:00:00 2001 From: cc9cii Date: Sun, 9 Nov 2014 18:10:44 +1100 Subject: [PATCH] Suppress warnings. --- apps/opencs/view/render/cell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/opencs/view/render/cell.cpp b/apps/opencs/view/render/cell.cpp index a53a2939f3..238f60bb5d 100644 --- a/apps/opencs/view/render/cell.cpp +++ b/apps/opencs/view/render/cell.cpp @@ -399,7 +399,7 @@ void CSVRender::Cell::pathgridPointRemoved(const std::string &name) int index = result.second; // check if the point exists - if(index < 0 || mPathgridId != pathgridId || index >= mPoints.size()) + if(index < 0 || mPathgridId != pathgridId || (unsigned int)index >= mPoints.size()) return; int numToDelete = mPoints[index].mConnectionNum * 2; // for sanity check later @@ -484,7 +484,7 @@ void CSVRender::Cell::pathgridPointMoved(const std::string &name, const Ogre::Ve int index = result.second; // check if the point exists - if(index < 0 || mPathgridId != pathgridId || index >= mPoints.size()) + if(index < 0 || mPathgridId != pathgridId || (unsigned int)index >= mPoints.size()) return; float worldsize = ESM::Land::REAL_SIZE;