Skip to content

Commit 3706a47

Browse files
committed
fix: _PyArg_UnpackKeywords API is removed, use PyArg_ParseTupleAndKeywords instead
1 parent d3c0f85 commit 3706a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JSArrayProxy.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ static bool sort_compare_default(JSContext *cx, unsigned argc, JS::Value *vp) {
11811181
}
11821182

11831183
PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_sort(JSArrayProxy *self, PyObject *args, PyObject *kwargs) {
1184-
static const char *const _keywords[] = {"key", "reverse", NULL};
1184+
static char *_keywords[] = {"key", "reverse", NULL};
11851185

11861186
PyObject *keyfunc = Py_None;
11871187
int reverse = 0;

0 commit comments

Comments
 (0)