diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-05-15 10:04:37 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-05-15 10:04:37 +0000 |
commit | 470ac988af289b7d86f124e885db8180eda31c95 (patch) | |
tree | 796b0e4ba7c39b224779b5a739db69b2752bcf98 /vespalib | |
parent | 51dd79b028db920f0749dd183200455f2f7a1f71 (diff) |
Use explicit static_cast
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/bfloat16.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } }; |