Skip to content

Commit aea53bd

Browse files
committed
get rid of the build warnings
1 parent ec20bdf commit aea53bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JSArrayProxy.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,11 +1181,11 @@ 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 char *_keywords[] = {"key", "reverse", NULL};
1184+
static const char *const _keywords[] = {"key", "reverse", NULL};
11851185

11861186
PyObject *keyfunc = Py_None;
11871187
int reverse = 0;
1188-
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|$Op:sort", _keywords, &keyfunc, &reverse)) {
1188+
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|$Op:sort", (char **)_keywords, &keyfunc, &reverse)) {
11891189
return NULL;
11901190
}
11911191

0 commit comments

Comments
 (0)