Commit 2fa12ee9 authored by Jan Möbius's avatar Jan Möbius

Wrong size type

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@863 fdac6126-5c0c-442c-9429-916003d36597
parent 0d921e1b
......@@ -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());
......
......@@ -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)
......
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