[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46629] trunk/blender/source/blender/ editors: was casting to short for int args.

Campbell Barton ideasman42 at gmail.com
Mon May 14 15:54:01 CEST 2012


Revision: 46629
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46629
Author:   campbellbarton
Date:     2012-05-14 13:54:00 +0000 (Mon, 14 May 2012)
Log Message:
-----------
was casting to short for int args.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_logic/logic_buttons.c
    trunk/blender/source/blender/editors/space_node/node_edit.c

Modified: trunk/blender/source/blender/editors/space_logic/logic_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_logic/logic_buttons.c	2012-05-14 13:46:38 UTC (rev 46628)
+++ trunk/blender/source/blender/editors/space_logic/logic_buttons.c	2012-05-14 13:54:00 UTC (rev 46629)
@@ -109,8 +109,9 @@
 		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;
 	}

Modified: trunk/blender/source/blender/editors/space_node/node_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_edit.c	2012-05-14 13:46:38 UTC (rev 46628)
+++ trunk/blender/source/blender/editors/space_node/node_edit.c	2012-05-14 13:54:00 UTC (rev 46629)
@@ -2647,7 +2647,7 @@
 		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;




More information about the Bf-blender-cvs mailing list