File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1307,7 +1307,7 @@ path_converter(PyObject *o, void *p)
1307
1307
goto error_exit ;
1308
1308
}
1309
1309
#endif
1310
- if (!path -> null_embeddable && wcslen (wide ) != length ) {
1310
+ if (!path -> null_embeddable && wcslen (wide ) != ( size_t ) length ) {
1311
1311
FORMAT_EXCEPTION (PyExc_ValueError ,
1312
1312
"embedded null character in %s" );
1313
1313
goto error_exit ;
@@ -1361,7 +1361,7 @@ path_converter(PyObject *o, void *p)
1361
1361
1362
1362
length = PyBytes_GET_SIZE (bytes );
1363
1363
narrow = PyBytes_AS_STRING (bytes );
1364
- if (!path -> null_embeddable && ( size_t ) length != strlen ( narrow ) ) {
1364
+ if (!path -> null_embeddable && strlen ( narrow ) != ( size_t ) length ) {
1365
1365
FORMAT_EXCEPTION (PyExc_ValueError , "embedded null character in %s" );
1366
1366
goto error_exit ;
1367
1367
}
@@ -1385,7 +1385,7 @@ path_converter(PyObject *o, void *p)
1385
1385
goto error_exit ;
1386
1386
}
1387
1387
#endif
1388
- if (!path -> null_embeddable && wcslen (wide ) != length ) {
1388
+ if (!path -> null_embeddable && wcslen (wide ) != ( size_t ) length ) {
1389
1389
FORMAT_EXCEPTION (PyExc_ValueError ,
1390
1390
"embedded null character in %s" );
1391
1391
goto error_exit ;
@@ -1394,7 +1394,7 @@ path_converter(PyObject *o, void *p)
1394
1394
#ifdef MS_WINDOWS
1395
1395
path -> narrow = TRUE;
1396
1396
#else
1397
- path -> narrow = narrow
1397
+ path -> narrow = narrow ;
1398
1398
#endif
1399
1399
Py_DECREF (bytes );
1400
1400
wide = NULL ;
You can’t perform that action at this time.
0 commit comments