fix compiler warning ( signed against unsigned ).

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
pull/511/merge
Kim Kulling 2015-03-26 10:11:14 +01:00
parent 7a01f77a08
commit ca4385fcf2
1 changed files with 3 additions and 2 deletions

View File

@ -74,8 +74,9 @@ namespace
template <class T>
const T &GetProperty(const std::vector<T> &props, int idx)
{
if (idx >= props.size())
if( static_cast< size_t >( idx ) >= props.size() ) {
throw DeadlyImportError( "Invalid .ply file: Property index is out of range." );
}
return props[idx];
}