Added missing casts.
diff --git a/Python/import.c b/Python/import.c
index d921d74..87b9963 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -2339,7 +2339,7 @@
 			goto typeerror;
 		frozenmodules[i].name = PyString_AsString(name);
 		if (PyObject_IsTrue(code)) {
-			frozenmodules[i].code = PyString_AsString(code);
+			frozenmodules[i].code = (unsigned char *)PyString_AsString(code);
 			frozenmodules[i].size = PyString_Size(code);
 		} else {
 			frozenmodules[i].code = NULL;
@@ -2407,7 +2407,7 @@
 		Py_INCREF(ob);
 		PyTuple_SET_ITEM(item, 0, ob);
 		if (p->code != NULL) {
-			ob = PyString_FromStringAndSize(p->code,
+			ob = PyString_FromStringAndSize((char *)p->code,
 				p->size >= 0 ? p->size : -(p->size));
 			if (ob == NULL)
 				goto error;
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index e41d618..a31c2d9 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -618,8 +618,8 @@
 
 #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 */