mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-28 05:18:43 +08:00
Fixed GCC warnings
This commit is contained in:
parent
0906d29278
commit
6e5ef7b230
@ -295,7 +295,7 @@ namespace etl
|
||||
//***************************************************
|
||||
const_iterator& operator ++()
|
||||
{
|
||||
index = (index == p_deque->BUFFER_SIZE - 1) ? 0 : index + 1;
|
||||
index = (static_cast<size_t>(index) == p_deque->BUFFER_SIZE - 1) ? 0 : index + 1;
|
||||
|
||||
return *this;
|
||||
}
|
||||
@ -331,7 +331,7 @@ namespace etl
|
||||
if (offset > 0)
|
||||
{
|
||||
index -= offset;
|
||||
index = (index < 0) ? index + p_deque->BUFFER_SIZE : index;
|
||||
index = (index < 0) ? static_cast<size_t>(index) + p_deque->BUFFER_SIZE : index;
|
||||
}
|
||||
else if (offset < 0)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user