Commit 420b5e59 authored by Jan Möbius's avatar Jan Möbius

size_t fixes

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@868 fdac6126-5c0c-442c-9429-916003d36597
parent a1ebb8b7
......@@ -291,11 +291,11 @@ private:
/// Get parent's index
inline unsigned int parent(unsigned int _i) { return (_i-1)>>1; }
inline size_t parent(size_t _i) { return (_i-1)>>1; }
/// Get left child's index
inline unsigned int left(unsigned int _i) { return (_i<<1)+1; }
inline size_t left(size_t _i) { return (_i<<1)+1; }
/// Get right child's index
inline unsigned int right(unsigned int _i) { return (_i<<1)+2; }
inline size_t right(size_t _i) { return (_i<<1)+2; }
};
......
......@@ -172,7 +172,7 @@ public:
bool end() { return !(current_pos_ < window_max_-buffer_min_); }
int window_size() const { return window_max_ - window_min_; }
int buffer_size() const { return buffer_max_ - buffer_min_; }
size_t buffer_size() const { return buffer_max_ - buffer_min_; }
VHierarchyNodeHandle node_handle()
{
......
Markdown is supported
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