Commit 4b89cc34 authored by Stefan Behnel's avatar Stefan Behnel

add missing cast in None checks

--HG--
extra : rebase_source : a88036d17a88ab216253c30e3f066a8697bc202e
parent 0e7d5046
...@@ -7505,7 +7505,7 @@ class NoneCheckNode(CoercionNode): ...@@ -7505,7 +7505,7 @@ class NoneCheckNode(CoercionNode):
# and nonecheck is disabled by default - WTF! # and nonecheck is disabled by default - WTF!
return return
code.putln( code.putln(
"if (unlikely(%s == Py_None)) {" % self.arg.result()) "if (unlikely(%s == Py_None)) {" % self.arg.py_result())
code.putln('PyErr_SetString(%s, "%s"); %s ' % ( code.putln('PyErr_SetString(%s, "%s"); %s ' % (
self.exception_type_cname, self.exception_type_cname,
StringEncoding.escape_byte_string( StringEncoding.escape_byte_string(
......
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