summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-10-02 04:41:02 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-10-04 09:36:27 -0500
commitc626e496b21291ef2b4d023bb75ce3af32065324 (patch)
tree961ae2e8750fc98d1bfd45f0263463b2ec0260de /chart2
parent51183d5ab6d83667dcf761dad05105d7341936a1 (diff)
coverity#1242729 Result is not floating-point
Change-Id: I7a1c8c964dc05d90ac6f15affe75ed14c79c0eb0
Diffstat (limited to 'chart2')
-rwxr-xr-xchart2/source/view/charttypes/GL3DBarChart.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index ea3c0849fd13..ec5855d6670a 100755
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -1112,7 +1112,7 @@ void GL3DBarChart::scroll(long nDelta)
(maRenderEvent != EVENT_AUTO_FLY) && (maRenderEvent != EVENT_SHOW_SELECT))
return;
glm::vec3 maDir = glm::normalize(maCameraPosition - maCameraDirection);
- maCameraPosition -= (float((nDelta/10)) * maDir);
+ maCameraPosition -= ((float)nDelta/10) * maDir;
mpCamera->setPosition(maCameraPosition);
if(mbBenchMarkMode)
{