From 1bcc1a7b92abe68236a32f64e1b31184de31b767 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Mar 2015 12:51:11 +0100 Subject: [PATCH] Fix incorrect operator in Value::operator^ --- lib/base/value-operators.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/base/value-operators.cpp b/lib/base/value-operators.cpp index 561a9622a..11fdc9621 100644 --- a/lib/base/value-operators.cpp +++ b/lib/base/value-operators.cpp @@ -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)