[DEV] compilation error
This commit is contained in:
parent
0069f83679
commit
beba14df12
@ -220,7 +220,7 @@ namespace etk
|
|||||||
etk::Vector<int8_t> tmpBuffer;
|
etk::Vector<int8_t> tmpBuffer;
|
||||||
tmpBuffer.Clear();
|
tmpBuffer.Clear();
|
||||||
if (_pos < m_gapStart) {
|
if (_pos < m_gapStart) {
|
||||||
if (pos + _nbElement < m_gapStart) {
|
if (_pos + _nbElement < m_gapStart) {
|
||||||
tmpBuffer.PushBack(&m_data[_pos], _nbElement);
|
tmpBuffer.PushBack(&m_data[_pos], _nbElement);
|
||||||
} else {
|
} else {
|
||||||
tmpBuffer.PushBack(&m_data[_pos], m_gapStart - _pos);
|
tmpBuffer.PushBack(&m_data[_pos], m_gapStart - _pos);
|
||||||
@ -248,7 +248,7 @@ namespace etk
|
|||||||
{
|
{
|
||||||
if( _pos > Size()
|
if( _pos > Size()
|
||||||
|| _pos < 0 ) {
|
|| _pos < 0 ) {
|
||||||
TK_ERROR("Request higher than buffer size : pos="<<pos<< " bufferSize="<<Size());
|
TK_ERROR("Request higher than buffer size : pos=" << _pos << " bufferSize=" << Size());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( 0 == GapSize() ) {
|
if( 0 == GapSize() ) {
|
||||||
@ -489,7 +489,7 @@ namespace etk
|
|||||||
memmove(&m_data[m_gapStart + _newGapLen], &m_data[m_gapEnd], previousSize - m_gapStart);
|
memmove(&m_data[m_gapStart + _newGapLen], &m_data[m_gapEnd], previousSize - m_gapStart);
|
||||||
// update gap end position
|
// update gap end position
|
||||||
m_gapEnd = m_gapStart + _newGapLen;
|
m_gapEnd = m_gapStart + _newGapLen;
|
||||||
if (pos < m_gapStart) {
|
if (_pos < m_gapStart) {
|
||||||
if (false == GapMove(_pos)) {
|
if (false == GapMove(_pos)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user