From 470ac988af289b7d86f124e885db8180eda31c95 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Wed, 15 May 2024 10:04:37 +0000 Subject: Use explicit static_cast --- vespalib/src/vespa/vespalib/util/bfloat16.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vespalib') diff --git a/vespalib/src/vespa/vespalib/util/bfloat16.h b/vespalib/src/vespa/vespalib/util/bfloat16.h index 0fa20191525..8a9af3470d3 100644 --- a/vespalib/src/vespa/vespalib/util/bfloat16.h +++ b/vespalib/src/vespa/vespalib/util/bfloat16.h @@ -74,7 +74,7 @@ public: constexpr float to_float() const noexcept { return bits_to_float(_bits); } constexpr void assign(float value) noexcept { _bits = float_to_bits(value); } - constexpr uint16_t get_bits() const { return _bits; } + constexpr uint16_t get_bits() const noexcept { return _bits; } constexpr void assign_bits(uint16_t value) noexcept { _bits = value; } }; -- cgit v1.2.3