Build: unbreak building with GCC 15

This commit is contained in:
Campbell Barton
2025-06-10 11:18:52 +10:00
parent 2580ea8511
commit 1021dbf5cb

View File

@@ -297,7 +297,7 @@ class ObjectKey {
hash_value_ = get_default_hash(hash_value_, get_default_hash(parent_));
for (int i : IndexRange(MAX_DUPLI_RECUR)) {
id_[i] = dupli->persistent_id[i];
if (id_[i] == INT_MAX) {
if (id_[i] == std::numeric_limits<int>::max()) {
break;
}
hash_value_ = get_default_hash(hash_value_, get_default_hash(id_[i]));
@@ -334,7 +334,7 @@ class ObjectKey {
if (id_[i] != k.id_[i]) {
return false;
}
if (id_[i] == INT_MAX) {
if (id_[i] == std::numeric_limits<int>::max()) {
break;
}
}