Unverified Commit d531e46f authored by fmeisel's avatar fmeisel Committed by GitHub

Update yaml_utils.cpp

parent 620817ac
......@@ -47,7 +47,7 @@ int GetInt32(const YAML::Node &node, const std::string &name)
int GetInt32(const YAML::Node &node, const std::string &name, std::optional<int> minValue, std::optional<int> maxValue)
{
int value = GetInt32(node, name);
if (minValue.has_value() && value <= minValue)
if (minValue.has_value() && value < minValue)
FieldError(name, "is too small");
if (maxValue.has_value() && value > maxValue)
FieldError(name, "is too big");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment