mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
strlen() returns a size_t, get rid of 64-bit warning
This commit is contained in:
parent
e93e64fb1a
commit
76dc081dd9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue