We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0022c5b commit a8ff97dCopy full SHA for a8ff97d
src/vt/utils/container/circular_phases_buffer.h
@@ -195,11 +195,12 @@ struct CircularPhasesBuffer {
195
196
if (new_size > 0) {
197
if (new_size < size()) {
198
- auto tmp_tail = head_ - new_size + 1;
199
- if (tmp_tail < 0) {
200
- tmp_tail += size();
+ int tmp = head_ - new_size + 1;
+ if (tmp < 0) {
+ tmp += size();
201
}
202
203
+ std::size_t tmp_tail = static_cast<std::size_t>(tmp);
204
for (int i = 0; tmp_tail != getNextEntry(head_);) {
205
new_vec[i++] = std::move(vector_[tmp_tail]);
206
tmp_tail = getNextEntry(tmp_tail);
0 commit comments