strlen() returns a size_t, get rid of 64-bit warning

This commit is contained in:
Neal Norwitz 2006-01-08 06:13:13 +00:00
parent e93e64fb1a
commit 76dc081dd9
1 changed files with 1 additions and 1 deletions

View File

@ -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: