diff src/pixelarray.c @ 2248:5985bf3a6235

Fix VC compiler errors and warings for pixelarray and pixelcopy (and remove some spaces on empty lines as well)
author Lenard Lindstrom <len-l@telus.net>
date Tue, 14 Jun 2011 17:15:44 +0000
parents be3228f63883
children a76f2f499bbe
line wrap: on
line diff
--- a/src/pixelarray.c	Mon Jun 13 00:53:31 2011 +0000
+++ b/src/pixelarray.c	Tue Jun 14 17:15:44 2011 +0000
@@ -841,9 +841,9 @@
             PyErr_NoMemory();
             return -1;
         }
-        val_pixels = memcpy(copied_pixels, val_surf->pixels, size) + val_offset;
+        val_pixels = (Uint8 *)memcpy(copied_pixels, val_surf->pixels, size) + val_offset;
     }
-                     
+
     if (!dim1) {
         dim1 = 1;
     }
@@ -1276,7 +1276,7 @@
     else if (low > (Sint32)array->dim0) {
         low = array->dim0;
     }
-        
+    
     if (high < low) {
         high = low;
     }
@@ -1478,7 +1478,7 @@
         Py_ssize_t size = PySequence_Size(op);
         Py_ssize_t xstart, xstop, xstep;
         Py_ssize_t ystart, ystop, ystep;
-        
+    
         if (size == 0) {
             /* array[,], array[()] ... */
             Py_INCREF(array);