convert value_bool to value_integer before operator / (fixes unsafe use of bool - MSVC C4804)

This commit is contained in:
artemp 2016-02-03 12:35:09 +01:00
parent c0724a6d95
commit 376ffba7fe

View file

@ -422,7 +422,7 @@ struct div
value_type operator() (value_bool lhs, value_bool rhs) const
{
if (rhs == 0) return lhs;
return value_integer{ lhs / rhs };
return value_integer(lhs) / value_integer(rhs);
}
value_type operator() (value_unicode_string const&,