diff src/pixelarray_methods.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 9fcb7abf3185
line wrap: on
line diff
--- a/src/pixelarray_methods.c	Mon Jun 13 00:53:31 2011 +0000
+++ b/src/pixelarray_methods.c	Tue Jun 14 17:15:44 2011 +0000
@@ -265,9 +265,9 @@
     float rgb[3] = { 0 };
     
     if (!weights) {
-        *wr = WR_NTSC;
-        *wg = WG_NTSC;
-        *wb = WB_NTSC;
+        *wr = (float)WR_NTSC;
+        *wg = (float)WG_NTSC;
+        *wb = (float)WB_NTSC;
         return 1;
     }
     
@@ -277,7 +277,7 @@
     } 
     else if (PySequence_Size(weights) < 3) {
         PyErr_SetString(PyExc_TypeError,
-			"weights must contain at least 3 values");
+            "weights must contain at least 3 values");
         success = 0;
     }
     else {