1. pygame
  2. pygame
  3. pygame

Commits

Lenard Lindstrom  committed 9d4e31c

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

  • Participants
  • Parent commits 94c5357
  • Branches default

Comments (0)

Files changed (2)

File src/font.c

View file
  • Ignore whitespace
 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) {

File src/imageext.c

View file
  • Ignore whitespace
         
         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();