stage4/generate_cc/search_expression_type.cc
changeset 65 c6d41c1287de
parent 42 b45c7f34dec1
--- a/stage4/generate_cc/search_expression_type.cc	Fri Oct 05 10:24:39 2007 +0200
+++ b/stage4/generate_cc/search_expression_type.cc	Fri Oct 05 17:58:44 2007 +0200
@@ -472,9 +472,7 @@
   
   void *visit(not_expression_c *symbol) {
     symbol_c *exp_type = base_type((symbol_c *)symbol->exp->accept(*this));
-    if (typeid(*exp_type) == typeid(bool_type_name_c)) {return (void *)exp_type;}
-    ERROR;
-    return NULL;
+    return compute_boolean_expression(exp_type, exp_type);
   }
   
   void *visit(function_invocation_c *symbol) {