Commit 6c628e99 authored by George Zagaris's avatar George Zagaris
Browse files

COMP: Fix int/unsigned int conversion warnings

Fixed compiler warnings related to storing a -1 on
a unsigned int.
parent f80b2ab7
...@@ -811,8 +811,8 @@ void vtkHierarchicalBoxDataSet::GetLevelAndIndex( ...@@ -811,8 +811,8 @@ void vtkHierarchicalBoxDataSet::GetLevelAndIndex(
const unsigned int flatIdx, unsigned int &level, unsigned int &idx ) const unsigned int flatIdx, unsigned int &level, unsigned int &idx )
{ {
level = -1; level = 0;
idx = -1; idx = 0;
if( this->CompositeIndex2LevelIdPair.find( flatIdx ) != if( this->CompositeIndex2LevelIdPair.find( flatIdx ) !=
this->CompositeIndex2LevelIdPair.end() ) this->CompositeIndex2LevelIdPair.end() )
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment