diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-08 06:13:13 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-08 06:13:13 (GMT) |
commit | 76dc081dd9130de71893ca2d9bb8156f4c13a4d4 (patch) | |
tree | 6208ef32175fc0e55e33b35fefb7d31348ff1123 /Objects | |
parent | e93e64fb1a10db07425cab30a65af1b335bc59ef (diff) | |
download | cpython-76dc081dd9130de71893ca2d9bb8156f4c13a4d4.zip cpython-76dc081dd9130de71893ca2d9bb8156f4c13a4d4.tar.gz cpython-76dc081dd9130de71893ca2d9bb8156f4c13a4d4.tar.bz2 |
strlen() returns a size_t, get rid of 64-bit warning
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/fileobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 259a423..b34dd52 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -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: |