From c499c22cf749e49d223b653b036e560a618bb6e2 Mon Sep 17 00:00:00 2001 From: Markus Wick Date: Fri, 24 Apr 2020 09:27:51 +0200 Subject: Fix -Werror=conversion error. --- src/common/bit_field.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/bit_field.h b/src/common/bit_field.h index fd2bbbd99..26ae6c7fc 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h @@ -180,7 +180,7 @@ public: } constexpr void Assign(const T& value) { - storage = (static_cast(storage) & ~mask) | FormatValue(value); + storage = static_cast((storage & ~mask) | FormatValue(value)); } constexpr T Value() const { -- cgit v1.2.3