aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/utils/narrow.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/include/uhdlib/utils/narrow.hpp')
-rw-r--r--host/lib/include/uhdlib/utils/narrow.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/include/uhdlib/utils/narrow.hpp b/host/lib/include/uhdlib/utils/narrow.hpp
index 25acb63d4..daedd55db 100644
--- a/host/lib/include/uhdlib/utils/narrow.hpp
+++ b/host/lib/include/uhdlib/utils/narrow.hpp
@@ -50,7 +50,7 @@
#if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable : 4127) // conditional expression is constant
-#endif // _MSC_VER
+#endif // _MSC_VER
namespace uhd {
@@ -83,8 +83,9 @@ inline T narrow(U u)
if (static_cast<U>(t) != u) {
throw narrowing_error("");
}
- if (!std::integral_constant<bool, std::is_signed<T>::value == std::is_signed<U>::value>::value
- && ((t < T{}) != (u < U{}))) {
+ if (!std::integral_constant<bool,
+ std::is_signed<T>::value == std::is_signed<U>::value>::value
+ && ((t < T{}) != (u < U{}))) {
throw narrowing_error("");
}
return t;