size_t fixes

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@868 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-07-24 09:30:04 +00:00
parent a1ebb8b7b5
commit 420b5e5928
2 changed files with 4 additions and 4 deletions

View File

@@ -291,11 +291,11 @@ private:
/// Get parent's index /// 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 /// 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 /// 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; }
}; };

View File

@@ -172,7 +172,7 @@ public:
bool end() { return !(current_pos_ < window_max_-buffer_min_); } bool end() { return !(current_pos_ < window_max_-buffer_min_); }
int window_size() const { return window_max_ - window_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() VHierarchyNodeHandle node_handle()
{ {