Fix write past end of array in recent texture sampling refactoring commit, and
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 13 Mar 2013 14:19:55 +0000 (14:19 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 13 Mar 2013 14:19:55 +0000 (14:19 +0000)
a small warning for double const keyword.

source/blender/blenkernel/intern/brush.c
source/blender/editors/space_view3d/view3d_select.c

index 3d32ac8db7747288d3ee72b84caf69a455915187..289086f8b86501ea6cdd951d6b5a941b2a8ccea5 100644 (file)
@@ -539,7 +539,7 @@ float BKE_brush_sample_tex_3D(const Scene *scene, Brush *br,
                float point_2d[2] = {point[0], point[1]};
                float x = 0.0f, y = 0.0f; /* Quite warnings */
                float radius = 1.0f; /* Quite warnings */
-               float co[2];
+               float co[3];
 
                if (mtex->brush_map_mode == MTEX_MAP_MODE_VIEW) {
                        /* keep coordinates relative to mouse */
index 7cf9a31a2f4ac3e209e0060012fe88e3b7c68098..38025c771fd1bcaca0feb17c381e149e18bac293 100644 (file)
@@ -2229,7 +2229,7 @@ static int mouse_weight_paint_vertex_select(bContext *C, const int mval[2], shor
 /* ****** Mouse Select ****** */
 
 
-static int view3d_select_invoke(bContext *C, wmOperator *op, const const wmEvent *event)
+static int view3d_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
 {
        Object *obedit = CTX_data_edit_object(C);
        Object *obact = CTX_data_active_object(C);