aboutsummaryrefslogtreecommitdiffstats
path: root/utils/sofa-info.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-11 06:47:56 -0700
committerChris Robinson <[email protected]>2019-09-11 06:47:56 -0700
commitbe0442c6207cc10fca079a803bbdd8985959b657 (patch)
treef454f679117428575d639e5b386104495889fe85 /utils/sofa-info.cpp
parent388928f3aa1ecf1a4f930c27687e7d0d4a9fd824 (diff)
Avoid C-style casts in C++
Diffstat (limited to 'utils/sofa-info.cpp')
-rw-r--r--utils/sofa-info.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sofa-info.cpp b/utils/sofa-info.cpp
index 83e3d065..e9f2257c 100644
--- a/utils/sofa-info.cpp
+++ b/utils/sofa-info.cpp
@@ -242,7 +242,7 @@ static void PrintCompatibleLayout(const uint m, const float *xyzs)
float ev{90.0f + elems[ei]};
float eif{std::round(ev / step)};
- if(std::fabs(eif - (uint)eif) < (0.1f / step))
+ if(std::fabs(eif - static_cast<uint>(eif)) < (0.1f / step))
{
evStart = static_cast<uint>(eif);
break;