* cs-tokenizer.cs: Do not short-circuit, because if we do, we
report errors (ie, #if false && true would produce an invalid
directive error);
svn path=/trunk/mcs/; revision=9179
+2002-11-24 Miguel de Icaza <miguel@ximian.com>
+
+ * cs-tokenizer.cs: Do not short-circuit, because if we do, we
+ report errors (ie, #if false && true would produce an invalid
+ directive error);
+
2002-11-24 Martin Baulig <martin@ximian.com>
* expression.cs (Cast.TryReduce): If we're in checked syntax,
\r
return va != pp_unary (ref s);\r
\r
- }\r
+ } \r
}\r
\r
return va;\r
if (s [0] == '&'){\r
if (len > 2 && s [1] == '&'){\r
s = s.Substring (2);\r
- return va && pp_eq (ref s);\r
+ return (va & pp_eq (ref s));\r
} else {\r
Error_InvalidDirective ();\r
return false;\r
if (c == '|'){\r
if (len > 2 && s [1] == '|'){\r
s = s.Substring (2);\r
- return va || pp_and (ref s);\r
+ return va | pp_and (ref s);\r
} else {\r
Error_InvalidDirective ();\r
return false;\r