Fixed several conversion warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@850 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -90,7 +90,7 @@ add_node(const VHierarchyNode &_node)
|
||||
{
|
||||
nodes_.push_back(_node);
|
||||
|
||||
return VHierarchyNodeHandle(nodes_.size() - 1);
|
||||
return VHierarchyNodeHandle(int(nodes_.size() - 1));
|
||||
}
|
||||
|
||||
|
||||
@@ -150,8 +150,8 @@ is_ancestor(VHierarchyNodeIndex _ancestor_index, VHierarchyNodeIndex _descendent
|
||||
if (_ancestor_index.tree_id(tree_id_bits_) != _descendent_index.tree_id(tree_id_bits_))
|
||||
return false;
|
||||
|
||||
unsigned int ancestor_node_id = _ancestor_index.node_id(tree_id_bits_);
|
||||
unsigned int descendent_node_id = _descendent_index.node_id(tree_id_bits_);
|
||||
unsigned int ancestor_node_id = _ancestor_index.node_id(tree_id_bits_);
|
||||
unsigned int descendent_node_id = _descendent_index.node_id(tree_id_bits_);
|
||||
|
||||
if (ancestor_node_id > descendent_node_id)
|
||||
return false;
|
||||
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
void clear() { nodes_.clear(); n_roots_ = 0; }
|
||||
unsigned char tree_id_bits() const { return tree_id_bits_; }
|
||||
unsigned int num_roots() const { return n_roots_; }
|
||||
unsigned int num_nodes() const { return nodes_.size(); }
|
||||
size_t num_nodes() const { return nodes_.size(); }
|
||||
|
||||
VHierarchyNodeIndex generate_node_index(id_t _tree_id, id_t _node_id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user