Commit 75322fef authored by Max Lyon's avatar Max Lyon

fix more warnings

parent 8d2de975
Pipeline #3329 passed with stage
in 3 minutes and 39 seconds
...@@ -178,14 +178,14 @@ public: ...@@ -178,14 +178,14 @@ public:
} }
/// Access the i'th element. No range check is performed! /// Access the i'th element. No range check is performed!
reference operator[](int _idx) { reference operator[](size_t _idx) {
assert(size_t(_idx) < data_.size()); assert(_idx < data_.size());
return data_[_idx]; return data_[_idx];
} }
/// Const access to the i'th element. No range check is performed! /// Const access to the i'th element. No range check is performed!
const_reference operator[](int _idx) const { const_reference operator[](size_t _idx) const {
assert(size_t(_idx) < data_.size()); assert(_idx < data_.size());
return data_[_idx]; return data_[_idx];
} }
......
...@@ -106,7 +106,7 @@ PropT ResourceManager::request_property(StdVecT& _vec, const std::string& _name, ...@@ -106,7 +106,7 @@ PropT ResourceManager::request_property(StdVecT& _vec, const std::string& _name,
} }
} }
HandleT handle(_vec.size()); HandleT handle((int)_vec.size());
PropT* prop = new PropT(_name, *this, handle, _def); PropT* prop = new PropT(_name, *this, handle, _def);
prop->resize(_size); prop->resize(_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment