Commits

Lenard Lindstrom committed 9dbb2bc

Fixed array bounds bug that crashed Python 2.6 for transform_test.py

Comments (0)

Files changed (1)

     num_threshold_pixels = 0;
     change_return = 1;
 
-    rgba_threshold[0] = 0; rgba_threshold[1] = 0; rgba_threshold[2] = 0; rgba_threshold[4] = 255;
-    rgba_diff_color[0] = 0; rgba_diff_color[1] = 0; rgba_diff_color[2] = 0; rgba_diff_color[4] = 255;
+    rgba_threshold[0] = 0; rgba_threshold[1] = 0; rgba_threshold[2] = 0; rgba_threshold[3] = 255;
+    rgba_diff_color[0] = 0; rgba_diff_color[1] = 0; rgba_diff_color[2] = 0; rgba_diff_color[3] = 255;
 
 
     /*get all the arguments*/