From 5d685391163f7bc293d952b45fb38dec86820889 Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Sun, 5 Mar 2017 22:05:12 +0100 Subject: [PATCH] make code compile on jenkins --- alib2data/src/common/SparseBoolVector.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/alib2data/src/common/SparseBoolVector.hpp b/alib2data/src/common/SparseBoolVector.hpp index 4743d724ec..d549ea9ee5 100644 --- a/alib2data/src/common/SparseBoolVector.hpp +++ b/alib2data/src/common/SparseBoolVector.hpp @@ -213,13 +213,13 @@ public: return m_Data; } - void resize ( size_t size ) { - if ( size > m_Size ) { + void resize ( size_t newSize ) { + if ( newSize > m_Size ) { // could be better - size_t added = ( size - m_Size ) / ( sizeof ( unsigned ) * 8 ) + 1; + size_t added = ( newSize - m_Size ) / ( sizeof ( unsigned ) * 8 ) + 1; m_Data.push_back ( element { ( unsigned ) added, 0 } ); } - m_Size = size; + m_Size = newSize; packData ( ); } -- GitLab