Skip to content

Commit 3d02051

Browse files
committed
fix: compilation error in JSObjectProxy.cc
error: cannot initialize return object of type 'bool' with an rvalue of type 'std::nullptr_t'
1 parent 99a9f27 commit 3d02051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JSObjectProxy.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ bool JSObjectProxyMethodDefinitions::JSObjectProxy_richcompare_helper(JSObjectPr
245245
if (!js::GetPropertyKeys(GLOBAL_CX, *(self->jsObject), JSITER_OWNONLY, &props))
246246
{
247247
PyErr_Format(PyExc_SystemError, "%s JSAPI call failed", JSObjectProxyType.tp_name);
248-
return NULL;
248+
return false;
249249
}
250250

251251
// iterate recursively through members of self and check for equality
@@ -442,7 +442,7 @@ PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_repr(JSObjectProxy *self
442442
PyErr_Clear();
443443
}
444444

445-
if (_PyUnicodeWriter_WriteASCIIString(&writer, "<cannot repr type>", 19) < 0) {
445+
if (_PyUnicodeWriter_WriteASCIIString(&writer, "<cannot repr type>", 19) < 0) {
446446
goto error;
447447
}
448448
}

0 commit comments

Comments
 (0)