mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Fix unsigned integer check in Solution.h
This commit is contained in:
parent
e6f3e9d448
commit
4cd6382048
@ -115,8 +115,8 @@ public:
|
|||||||
|
|
||||||
//! Get the name of an adjacent phase by index
|
//! Get the name of an adjacent phase by index
|
||||||
string adjacentName(size_t i) const {
|
string adjacentName(size_t i) const {
|
||||||
if (i < 0 || i >= m_adjacent.size()) {
|
if (i >= m_adjacent.size()) {
|
||||||
throw CanteraError("Solution::adjacentName", "Invalid index {}.", i);
|
throw IndexError("Solution::adjacentName", "m_adjacent", i, m_adjacent.size()-1);
|
||||||
}
|
}
|
||||||
return m_adjacent.at(i)->name();
|
return m_adjacent.at(i)->name();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user