mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fixed not-an-issue found by Coverity [#CLICKHOUSE-2].
This commit is contained in:
parent
3f9d7ed44e
commit
9cafeb9e85
@ -22,7 +22,7 @@ private:
|
||||
{
|
||||
size_t old_size = s.size();
|
||||
s.resize(old_size * 2);
|
||||
internal_buffer = Buffer(reinterpret_cast<Position>(&s[old_size]), reinterpret_cast<Position>(&*s.end()));
|
||||
internal_buffer = Buffer(reinterpret_cast<Position>(&s[old_size]), reinterpret_cast<Position>(&s[s.size()]));
|
||||
working_buffer = internal_buffer;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ private:
|
||||
{
|
||||
size_t old_size = vector.size();
|
||||
vector.resize(old_size * 2);
|
||||
internal_buffer = Buffer(reinterpret_cast<Position>(&vector[old_size]), reinterpret_cast<Position>(&*vector.end()));
|
||||
internal_buffer = Buffer(reinterpret_cast<Position>(&vector[old_size]), reinterpret_cast<Position>(vector.data() + vector.size()));
|
||||
working_buffer = internal_buffer;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user