Skip to content

Commit

Permalink
NodeStatus: follow enum registration fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
avarga committed Apr 10, 2024
1 parent 916d2a8 commit 3656055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inet/common/lifecycle/NodeStatus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ NodeStatus::State NodeStatus::getStateByName(const char *name)
{
std::string temp = name;
std::transform(temp.begin(), temp.end(), temp.begin(), ::toupper);
cEnum *e = cEnum::get("inet::NodeStatus");
cEnum *e = cEnum::get("inet::NodeStatus::State");
int state = e->lookup(temp.c_str(), -1);
if (state == -1)
throw cRuntimeError("Invalid state name '%s'", name);
Expand Down

0 comments on commit 3656055

Please sign in to comment.