Skip to content

Commit a30a47b

Browse files
author
tiberius
committed
fixed small error in size recalculation (resize method)
1 parent f4365fb commit a30a47b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp4j/rationalnumberarray.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ void rnum::CPP_RationalNumberArray::resize(const unsigned int newSize) {
237237
for (unsigned int i = 0; i < newSize; i++) {
238238
newData[i] = this->m_data[i];
239239
}
240+
this->m_size = newSize;
240241
}
241242
else // append
242243
{

0 commit comments

Comments
 (0)