size_t fixes
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@868 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -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; }
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user