Compare commits

...

2 Commits

Author SHA1 Message Date
Georg Schnabel
ea4fd937bb
Merge 4f75726251 into 330aae51cf 2024-11-18 21:43:31 +08:00
gschnabel
4f75726251 docs: fix error condition in custom type caster example 2024-10-21 14:24:46 +02:00

View File

@ -64,7 +64,7 @@ type is explicitly allowed.
value.long_value = PyLong_AsLong(tmp);
Py_DECREF(tmp);
/* Ensure return code was OK (to avoid out-of-range errors etc) */
return !(value.long_value == -1 && !PyErr_Occurred());
return !(value.long_value == -1 && PyErr_Occurred());
}
/**