Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-08-01 06:35:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-01 06:35:26 +0300
commit4c38d84e738fbe0e5324313c68f2e7eacc4ca1fb (patch)
treed7a0880c3c72c8915220a6bd414f35a30a6dd03e /source/blender/draw/intern/draw_view.c
parent8ddaa6a4e237cfa667ace4a00f147e2683d83840 (diff)
Cleanup: double promotion
Diffstat (limited to 'source/blender/draw/intern/draw_view.c')
-rw-r--r--source/blender/draw/intern/draw_view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c
index 37c44f33915..e58f7cfbd29 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -680,7 +680,7 @@ void DRW_draw_cursor(void)
immAttrib3fv(wpos, co);
for (int i = 0; i < segments; ++i) {
- float angle = 2 * M_PI * ((float)i / (float)segments);
+ float angle = (float)(2 * M_PI) * ((float)i / (float)segments);
float x = f10 * cosf(angle);
float y = f10 * sinf(angle);