Commits

Lenard Lindstrom committed 9d4e31c

minor changes to merged fsencoding files that may fix the Mac GCC error

Comments (0)

Files changed (2)

 static int
 utf_8_needs_UCS_4(const char *str)
 {
-    static const Uint8 first = 0xF0;
+    static const Uint8 first = '\xF0';
     
     while (*str) {
         if ((Uint8)*str >= first) {
         
         cext = find_extension(name);
         if (cext != NULL) {
-            ext = PyMem_Malloc(strlen(cext) + 1);
+            ext = (char *)PyMem_Malloc(strlen(cext) + 1);
             if (ext == NULL) {
                 Py_XDECREF(oencoded);
                 return PyErr_NoMemory();