Random number generator now works with size_t

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@869 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-07-24 09:38:26 +00:00
parent 420b5e5928
commit d3cd7bfe06
3 changed files with 11 additions and 8 deletions

View File

@@ -116,7 +116,7 @@ update_buffer(VHierarchyNodeHandle _node_handle)
if (buffer_[none_zero_pos] != 0) break;
}
window_max_ = buffer_min_ + none_zero_pos + 1;
for(none_zero_pos=0; none_zero_pos < buffer_size(); ++none_zero_pos)
for(none_zero_pos=0; none_zero_pos < int(buffer_size()); ++none_zero_pos)
{
if (buffer_[none_zero_pos] != 0) break;
}