fix compiler warning ( signed against unsigned ).
Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>pull/511/merge
parent
7a01f77a08
commit
ca4385fcf2
|
@ -74,8 +74,9 @@ namespace
|
||||||
template <class T>
|
template <class T>
|
||||||
const T &GetProperty(const std::vector<T> &props, int idx)
|
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.");
|
throw DeadlyImportError( "Invalid .ply file: Property index is out of range." );
|
||||||
|
}
|
||||||
|
|
||||||
return props[idx];
|
return props[idx];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue