summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-01-08 06:13:13 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-01-08 06:13:13 (GMT)
commit76dc081dd9130de71893ca2d9bb8156f4c13a4d4 (patch)
tree6208ef32175fc0e55e33b35fefb7d31348ff1123 /Objects
parente93e64fb1a10db07425cab30a65af1b335bc59ef (diff)
downloadcpython-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.c2
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: