[Bf-blender-cvs] [e0ce58d] soc-2013-viewport_fx: fileops.c: warning fix: int -> float conversion

jwilkins noreply at git.blender.org
Tue Feb 18 22:06:17 CET 2014


Commit: e0ce58dd97b6ad82e82acae0c917138c3d2ba519
Author: jwilkins
Date:   Mon Feb 17 10:58:10 2014 -0600
https://developer.blender.org/rBe0ce58dd97b6ad82e82acae0c917138c3d2ba519

fileops.c: warning fix: int -> float conversion

===================================================================

M	source/blender/editors/space_file/file_ops.c

===================================================================

diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index 681d83e..bbd05a8 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -570,7 +570,7 @@ int file_highlight_set(SpaceFile *sfile, ARegion *ar, int mx, int my)
 		float fx, fy;
 		int active_file;
 
-		UI_view2d_region_to_view(v2d, mx, my, &fx, &fy);
+		UI_view2d_region_to_view(v2d, (float)mx, (float)my, &fx, &fy);
 
 		active_file = ED_fileselect_layout_offset(sfile->layout, (int)(v2d->tot.xmin + fx), (int)(v2d->tot.ymax - fy));




More information about the Bf-blender-cvs mailing list