Skip to content

Commit 6253ed9

Browse files
authored
Update limits.hlsl
1 parent 92bd414 commit 6253ed9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/nbl/builtin/hlsl/limits.hlsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ struct numeric_limits : std::numeric_limits<T>
273273
NBL_CONSTEXPR_STATIC_INLINE T epsilon = base::epsilon();
274274
NBL_CONSTEXPR_STATIC_INLINE T round_error = base::round_error();
275275

276-
NBL_CONSTEXPR_STATIC_INLINE uint_type quiet_NaN = std::bit_cast(base::quiet_NaN());
277-
NBL_CONSTEXPR_STATIC_INLINE uint_type signaling_NaN = std::bit_cast(base::signaling_NaN());
278-
NBL_CONSTEXPR_STATIC_INLINE uint_type infinity = std::bit_cast(base::infinity());
276+
NBL_CONSTEXPR_STATIC_INLINE uint_type quiet_NaN = std::bit_cast<uint_type>(base::quiet_NaN());
277+
NBL_CONSTEXPR_STATIC_INLINE uint_type signaling_NaN = std::bit_cast<uint_type>(base::signaling_NaN());
278+
NBL_CONSTEXPR_STATIC_INLINE uint_type infinity = std::bit_cast<uint_type>(base::infinity());
279279
};
280280

281281
#endif

0 commit comments

Comments
 (0)