From ca4385fcf25aa1802c1b6a98366cc49ddd77d4ce Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 26 Mar 2015 10:11:14 +0100 Subject: [PATCH] fix compiler warning ( signed against unsigned ). Signed-off-by: Kim Kulling --- code/PlyLoader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/PlyLoader.cpp b/code/PlyLoader.cpp index deb7da094..f1864b0f6 100644 --- a/code/PlyLoader.cpp +++ b/code/PlyLoader.cpp @@ -74,8 +74,9 @@ namespace template const T &GetProperty(const std::vector &props, int idx) { - if (idx >= props.size()) - throw DeadlyImportError("Invalid .ply file: Property index is out of range."); + if( static_cast< size_t >( idx ) >= props.size() ) { + throw DeadlyImportError( "Invalid .ply file: Property index is out of range." ); + } return props[idx]; }