comparison Python/pythonrun.c @ 26643:02ba4663cad2 legacy-trunk

Added missing casts.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 13 Dec 2002 15:23:10 +0000
parents cc05c2c8660e
children 54aacb87beda
comparison
equal deleted inserted replaced
26642:d2302339a8ad 26643:02ba4663cad2
616 if (strcmp(ext, ".pyc") == 0 || strcmp(ext, ".pyo") == 0) 616 if (strcmp(ext, ".pyc") == 0 || strcmp(ext, ".pyo") == 0)
617 return 1; 617 return 1;
618 618
619 #ifdef macintosh 619 #ifdef macintosh
620 /* On a mac, we also assume a pyc file for types 'PYC ' and 'APPL' */ 620 /* On a mac, we also assume a pyc file for types 'PYC ' and 'APPL' */
621 if (PyMac_getfiletype(filename) == 'PYC ' 621 if (PyMac_getfiletype((char *)filename) == 'PYC '
622 || PyMac_getfiletype(filename) == 'APPL') 622 || PyMac_getfiletype((char *)filename) == 'APPL')
623 return 1; 623 return 1;
624 #endif /* macintosh */ 624 #endif /* macintosh */
625 625
626 /* Only look into the file if we are allowed to close it, since 626 /* Only look into the file if we are allowed to close it, since
627 it then should also be seekable. */ 627 it then should also be seekable. */