Commit d6e6de92 authored by Stefan Behnel's avatar Stefan Behnel

Add yet another branch hint for an exception case.

parent cda11a72
......@@ -770,7 +770,7 @@ static CYTHON_INLINE PyObject *{{get_function}}(const char *itemp) {
{{if from_py_function}}
static CYTHON_INLINE int {{set_function}}(const char *itemp, PyObject *obj) {
{{dtype}} value = {{from_py_function}}(obj);
if ({{error_condition}})
if (unlikely({{error_condition}}))
return 0;
*({{dtype}} *) itemp = value;
return 1;
......
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