aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/DataObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/model/DataObject.cpp')
-rw-r--r--src/core/model/DataObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/model/DataObject.cpp b/src/core/model/DataObject.cpp
index 13838941..dbe5588e 100644
--- a/src/core/model/DataObject.cpp
+++ b/src/core/model/DataObject.cpp
@@ -41,7 +41,7 @@ class DataObject::Impl {
void AppendObject(const std::any& obj) { params_.push_back(obj); }
auto GetParameter(size_t index) -> std::any {
- if (index >= params_.size()) {
+ if (index >= static_cast<size_t>(params_.size())) {
throw std::out_of_range("index out of range");
}
return params_[index];