Fix incorrect operator in Value::operator^

This commit is contained in:
Gunnar Beutner 2015-03-02 12:51:11 +01:00
parent 79a69d3e89
commit 1bcc1a7b92
1 changed files with 4 additions and 4 deletions

View File

@ -425,22 +425,22 @@ Value icinga::operator^(const Value& lhs, const Value& rhs)
Value icinga::operator^(const Value& lhs, double rhs)
{
return lhs & Value(rhs);
return lhs ^ Value(rhs);
}
Value icinga::operator^(double lhs, const Value& rhs)
{
return Value(lhs) & rhs;
return Value(lhs) ^ rhs;
}
Value icinga::operator^(const Value& lhs, int rhs)
{
return lhs & Value(rhs);
return lhs ^ Value(rhs);
}
Value icinga::operator^(int lhs, const Value& rhs)
{
return Value(lhs) & rhs;
return Value(lhs) ^ rhs;
}
Value icinga::operator&(const Value& lhs, const Value& rhs)