Skip to content

Commit

Permalink
core: use uint32_t for enum types to avoid various ub
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 20, 2024
1 parent a048a6c commit ce8dae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ std::string WPTypeToCType(const SRequestArgument& arg, bool event /* events pass
if (!arg.enumName.empty())
for (auto& e : XMLDATA.enums) {
if (e.nameOriginal == arg.enumName)
return e.name;
return std::format("uint32_t /* {} */", e.name);
}

// iface
Expand Down

0 comments on commit ce8dae8

Please sign in to comment.