Skip to content

Commit

Permalink
MinGW sure is strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 19, 2021
1 parent 8f510dc commit 1a9ebc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/units/unit.hpp
Expand Up @@ -1188,7 +1188,7 @@ class unit : public std::enable_shared_from_this<unit>
{
if(n == 0) return upkeep_loyal();
if(n < 0) throw std::invalid_argument(std::to_string(n));
return n;
return static_cast<int>(n);
}

template<typename B>
Expand Down

0 comments on commit 1a9ebc9

Please sign in to comment.