diff --git a/gen/arrays.cpp b/gen/arrays.cpp index bfd23b50..6d6fdc60 100644 --- a/gen/arrays.cpp +++ b/gen/arrays.cpp @@ -808,7 +808,7 @@ LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r) if (op == TOKnotequal) res = gIR->ir->CreateNot(res, "tmp"); - return res; + return DtoBoolean(res); } //////////////////////////////////////////////////////////////////////////////////////////