From 8ffa7eafea218d12db29be08240ea233259372a1 Mon Sep 17 00:00:00 2001 From: cutealien Date: Tue, 4 Oct 2022 12:32:27 +0000 Subject: [PATCH] Fix warning git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6434 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CBillboardSceneNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Irrlicht/CBillboardSceneNode.cpp b/source/Irrlicht/CBillboardSceneNode.cpp index c1776d4d..b61a8eaa 100644 --- a/source/Irrlicht/CBillboardSceneNode.cpp +++ b/source/Irrlicht/CBillboardSceneNode.cpp @@ -162,7 +162,7 @@ void CBillboardSceneNode::setSize(const core::dimension2d& size) if (core::equals(Size.Height, 0.0f)) Size.Height = 1.0f; - const f32 extent = 0.5f*sqrt(Size.Width*Size.Width + Size.Height*Size.Height); + const f32 extent = 0.5f*sqrtf(Size.Width*Size.Width + Size.Height*Size.Height); BBoxSafe.MinEdge.set(-extent,-extent,-extent); BBoxSafe.MaxEdge.set(extent,extent,extent); } @@ -182,7 +182,7 @@ void CBillboardSceneNode::setSize(f32 height, f32 bottomEdgeWidth, f32 topEdgeWi TopEdgeWidth = 1.0f; } - const f32 extent = 0.5f*sqrt(Size.Width*Size.Width + Size.Height*Size.Height); + const f32 extent = 0.5f*sqrtf(Size.Width*Size.Width + Size.Height*Size.Height); BBoxSafe.MinEdge.set(-extent,-extent,-extent); BBoxSafe.MaxEdge.set(extent,extent,extent); }