@@ -20315,9 +20315,7 @@ var band__bool__string(const var& a, const var& b, pythonic::overflow::Overflow
2031520315 throw pythonic::PythonicTypeError("TypeError: unsupported operand type(s) for &: 'bool' and 'string'");
2031620316}
2031720317var band__bool__bool(const var& a, const var& b, pythonic::overflow::Overflow policy, bool smallest_fit) {
20318- int la = static_cast<int>(a.var_get<bool>());
20319- int lb = static_cast<int>(b.var_get<bool>());
20320- return var(la & lb);
20318+ return var(a.var_get<bool>() & b.var_get<bool>());
2032120319}
2032220320var band__bool__double(const var& a, const var& b, pythonic::overflow::Overflow policy, bool smallest_fit) {
2032320321 throw pythonic::PythonicTypeError("TypeError: unsupported operand type(s) for &: 'bool' and 'double'");
@@ -21436,9 +21434,7 @@ var bor__bool__string(const var& a, const var& b, pythonic::overflow::Overflow p
2143621434 throw pythonic::PythonicTypeError("TypeError: unsupported operand type(s) for |: 'bool' and 'string'");
2143721435}
2143821436var bor__bool__bool(const var& a, const var& b, pythonic::overflow::Overflow policy, bool smallest_fit) {
21439- int la = static_cast<int>(a.var_get<bool>());
21440- int lb = static_cast<int>(b.var_get<bool>());
21441- return var(la | lb);
21437+ return var(a.var_get<bool>() | b.var_get<bool>());
2144221438}
2144321439var bor__bool__double(const var& a, const var& b, pythonic::overflow::Overflow policy, bool smallest_fit) {
2144421440 throw pythonic::PythonicTypeError("TypeError: unsupported operand type(s) for |: 'bool' and 'double'");
@@ -22556,9 +22552,7 @@ var bxor__bool__string(const var& a, const var& b, pythonic::overflow::Overflow
2255622552 throw pythonic::PythonicTypeError("TypeError: unsupported operand type(s) for ^: 'bool' and 'string'");
2255722553}
2255822554var bxor__bool__bool(const var& a, const var& b, pythonic::overflow::Overflow policy, bool smallest_fit) {
22559- int la = static_cast<int>(a.var_get<bool>());
22560- int lb = static_cast<int>(b.var_get<bool>());
22561- return var(la ^ lb);
22555+ return var(a.var_get<bool>() ^ b.var_get<bool>());
2256222556}
2256322557var bxor__bool__double(const var& a, const var& b, pythonic::overflow::Overflow policy, bool smallest_fit) {
2256422558 throw pythonic::PythonicTypeError("TypeError: unsupported operand type(s) for ^: 'bool' and 'double'");
0 commit comments