Wrong size type

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@863 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-07-24 08:04:30 +00:00
parent 0d921e1be2
commit 2fa12ee982
2 changed files with 3 additions and 3 deletions

View File

@@ -128,8 +128,8 @@ update_buffer(VHierarchyNodeHandle _node_handle)
while (overflow(_node_handle) == true)
{
buffer_max_ *= 2;
if (buffer_max_ > (int) vhierarchy_->num_nodes() / 8)
buffer_max_ = (int) (1 + vhierarchy_->num_nodes() / 8);
if (buffer_max_ > vhierarchy_->num_nodes() / 8)
buffer_max_ = 1 + vhierarchy_->num_nodes() / 8;
}
unsigned char *new_buffer = (unsigned char *) malloc(buffer_size());

View File

@@ -77,7 +77,7 @@ private:
// bits buffer (byte units)
unsigned char *buffer_;
int buffer_min_;
int buffer_max_;
size_t buffer_max_;
int current_pos_;
// window (byte units)