Commit 2b4aa4cc authored by Stefan Behnel's avatar Stefan Behnel

fix stupid crash

parent 8e31c2d5
...@@ -6136,7 +6136,7 @@ class CoerceToBooleanNode(CoercionNode): ...@@ -6136,7 +6136,7 @@ class CoerceToBooleanNode(CoercionNode):
return return
test_func = self._special_builtins.get(self.arg.type) test_func = self._special_builtins.get(self.arg.type)
if test_func is not None: if test_func is not None:
code.putln("%s = (%s != Py_None) & (%s(%s) != 0);" % ( code.putln("%s = (%s != Py_None) && (%s(%s) != 0);" % (
self.result(), self.result(),
self.arg.py_result(), self.arg.py_result(),
test_func, test_func,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment