diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-14 17:54:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-14 17:54:00 +0400 |
commit | ff26474a46fc9a064d01711ec7f80111dca8d347 (patch) | |
tree | b797ef68fae6566bbd84a5da94f33446b5976544 | |
parent | a7a79322bfacd5bbbf7f931143275557ea061c83 (diff) |
was casting to short for int args.
-rw-r--r-- | source/blender/editors/space_logic/logic_buttons.c | 5 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_edit.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_logic/logic_buttons.c b/source/blender/editors/space_logic/logic_buttons.c index 71aef18666b..1595889f596 100644 --- a/source/blender/editors/space_logic/logic_buttons.c +++ b/source/blender/editors/space_logic/logic_buttons.c @@ -109,8 +109,9 @@ static int cut_links_exec(bContext *C, wmOperator *op) float loc[2]; RNA_float_get_array(&itemptr, "loc", loc); - UI_view2d_region_to_view(&ar->v2d, (short)loc[0], (short)loc[1], - &mcoords[i][0], &mcoords[i][1]); + UI_view2d_region_to_view(&ar->v2d, + (int)loc[0], (int)loc[1], + &mcoords[i][0], &mcoords[i][1]); i++; if (i>= 256) break; } diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index 9e59b3372cb..ae6c09b0339 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -2647,7 +2647,7 @@ static int cut_links_exec(bContext *C, wmOperator *op) float loc[2]; RNA_float_get_array(&itemptr, "loc", loc); - UI_view2d_region_to_view(&ar->v2d, (short)loc[0], (short)loc[1], + UI_view2d_region_to_view(&ar->v2d, (int)loc[0], (int)loc[1], &mcoords[i][0], &mcoords[i][1]); i++; if (i>= 256) break; |