convert value_bool to value_integer before operator / (fixes unsafe use of bool - MSVC C4804)
This commit is contained in:
parent
c0724a6d95
commit
376ffba7fe
1 changed files with 1 additions and 1 deletions
|
@ -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&,
|
||||
|
|
Loading…
Reference in a new issue