Commit 883d4903 authored by charlie's avatar charlie
Browse files

simplify opt check

parent 54ccaead
......@@ -508,7 +508,10 @@ shape::dynamic_dimension& shape::dynamic_dimension::operator+=(const std::size_t
{
this->min += x;
this->max += x;
this->opt == 0 ? this->opt = 0 : this->opt += x;
if(this->opt != 0)
{
this->opt += x;
};
return *this;
}
......
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