Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c646c9

Browse files
committed
Squashed compiler wng about signed/unsigned clash in comparison.
1 parent 26bf3ac commit 2c646c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ builtin_compile(PyObject *self, PyObject *args)
362362
#endif
363363
if (PyObject_AsReadBuffer(cmd, (const void **)&str, &length))
364364
return NULL;
365-
if (length != strlen(str)) {
365+
if ((size_t)length != strlen(str)) {
366366
PyErr_SetString(PyExc_TypeError,
367367
"expected string without null bytes");
368368
return NULL;

0 commit comments

Comments
 (0)