summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index e41d618a32..a31c2d99ba 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -618,8 +618,8 @@ maybe_pyc_file(FILE *fp, const char* filename, const char* ext, int closeit)
#ifdef macintosh
/* On a mac, we also assume a pyc file for types 'PYC ' and 'APPL' */
- if (PyMac_getfiletype(filename) == 'PYC '
- || PyMac_getfiletype(filename) == 'APPL')
+ if (PyMac_getfiletype((char *)filename) == 'PYC '
+ || PyMac_getfiletype((char *)filename) == 'APPL')
return 1;
#endif /* macintosh */