Fix tests

This commit is contained in:
avogar 2021-10-07 00:19:37 +03:00
parent 5e4cda02b6
commit 568e27e9b3
3 changed files with 9 additions and 3 deletions

View File

@ -212,7 +212,9 @@ struct BinaryOperation
if (right_nullmap) if (right_nullmap)
{ {
for (size_t i = 0; i < size; ++i) for (size_t i = 0; i < size; ++i)
if (!(*right_nullmap)[i]) if ((*right_nullmap)[i])
c[i] = ResultType();
else
apply<op_case>(a, b, c, i); apply<op_case>(a, b, c, i);
} }
else else

View File

@ -40,7 +40,9 @@ struct DivideIntegralByConstantImpl
if (right_nullmap) if (right_nullmap)
{ {
for (size_t i = 0; i < size; ++i) for (size_t i = 0; i < size; ++i)
if (!(*right_nullmap)[i]) if ((*right_nullmap)[i])
c[i] = ResultType();
else
apply<op_case>(a, b, c, i); apply<op_case>(a, b, c, i);
} }
else else

View File

@ -43,7 +43,9 @@ struct ModuloByConstantImpl
if (right_nullmap) if (right_nullmap)
{ {
for (size_t i = 0; i < size; ++i) for (size_t i = 0; i < size; ++i)
if (!(*right_nullmap)[i]) if ((*right_nullmap)[i])
c[i] = ResultType();
else
apply<op_case>(a, b, c, i); apply<op_case>(a, b, c, i);
} }
else else