changeset 296:0548a7720a1b trunk

[svn r317] Convert result of _adEq runtime function to bool to make sure EqualExp returns i1 bool.
author ChristianK
date Mon, 23 Jun 2008 19:08:32 +0200
parents 895e1b50cf2a
children 5de180867c46
files gen/arrays.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/arrays.cpp	Mon Jun 23 14:48:42 2008 +0200
+++ b/gen/arrays.cpp	Mon Jun 23 19:08:32 2008 +0200
@@ -808,7 +808,7 @@
     if (op == TOKnotequal)
         res = gIR->ir->CreateNot(res, "tmp");
 
-    return res;
+    return DtoBoolean(res);
 }
 
 //////////////////////////////////////////////////////////////////////////////////////////