Wrong size type
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@863 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user