strlen() returns a size_t, get rid of 64-bit warning
This commit is contained in:
parent
e93e64fb1a
commit
76dc081dd9
|
@ -136,7 +136,7 @@ fill_file_fields(PyFileObject *f, FILE *fp, PyObject *name, char *mode,
|
|||
static int
|
||||
check_the_mode(char *mode)
|
||||
{
|
||||
unsigned int len = strlen(mode);
|
||||
size_t len = strlen(mode);
|
||||
|
||||
switch (len) {
|
||||
case 0:
|
||||
|
|
Loading…
Reference in New Issue