Fix more signed/unsigned warnings

This commit is contained in:
Marc Gilleron 2021-01-09 20:21:09 +00:00
parent 4686735f00
commit 3a7f99643d
2 changed files with 3 additions and 3 deletions

View File

@ -436,8 +436,8 @@ void VoxelGraphRuntime::generate_set(ArraySlice<float> in_x, ArraySlice<float> i
buffer.size = buffer_size;
if (buffer.is_constant) {
for (auto i = 0; i < buffer_size; ++i) {
buffer.data[i] = buffer.constant_value;
for (unsigned int j = 0; j < buffer_size; ++j) {
buffer.data[j] = buffer.constant_value;
}
}
}

View File

@ -192,7 +192,7 @@ private:
std::vector<uint8_t> _program;
std::vector<Interval> _ranges;
std::vector<Buffer> _buffers;
int _buffer_size = 0;
unsigned int _buffer_size = 0;
std::vector<HeapResource> _heap_resources;