aboutsummaryrefslogtreecommitdiff
path: root/support/ToolchainSupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/ToolchainSupport.h')
-rw-r--r--support/ToolchainSupport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/ToolchainSupport.h b/support/ToolchainSupport.h
index deaded34f3..f90d65c9d9 100644
--- a/support/ToolchainSupport.h
+++ b/support/ToolchainSupport.h
@@ -155,7 +155,7 @@ inline std::string to_string(T && value)
template <typename T>
inline T nearbyint(T value)
{
- return ::nearbyint(value);
+ return static_cast<T>(::nearbyint(value));
}
/** Convert string values to float.
@@ -286,7 +286,7 @@ inline std::string to_string(T &&value)
template <typename T>
inline T nearbyint(T value)
{
- return std::nearbyint(value);
+ return static_cast<T>(std::nearbyint(value));
}
/** Convert string values to float.