From f725e59b4fa80b0607b2260a6adde4e3c0cbb419 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sun, 27 Oct 2019 11:16:34 +0100 Subject: [PATCH] Make underlying type sintE of cln::float_format_t explicit. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Suggested by Jan Rheinländer . --- include/cln/floatformat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cln/floatformat.h b/include/cln/floatformat.h index 35eb4d1..b314089 100644 --- a/include/cln/floatformat.h +++ b/include/cln/floatformat.h @@ -8,12 +8,12 @@ namespace cln { // Float format specifier type. (Float mantissa precision in bits.) -enum float_format_t { +enum float_format_t : sintE { float_format_sfloat = 17, float_format_ffloat = 24, float_format_dfloat = 53, float_format_lfloat_min = ((53+intDsize-1)/intDsize)*intDsize, // = round_up(53,intDsize) - float_format_lfloat_max = ~((sintE)(1) << (intEsize-1)) // force correct underlying type of float_format_t + float_format_lfloat_max = ~((sintE)(1) << (intEsize-1)) }; } // namespace cln -- 2.49.0