1. pygame
  2. Untitled project
  3. pygame

Source

pygame / src / bufferproxy.c

Diff from to

File src/bufferproxy.c

  • Ignore whitespace
         return RAISE (PyExc_IndexError, "bytes to write exceed buffer size");
     }
 
-    memcpy (buffer->buffer + offset, buf, (size_t) length);
+    memcpy (((Uint8 *)buffer->buffer) + offset, buf, (size_t) length);
 
     Py_RETURN_NONE;
 }