From: Richard Kreckel Date: Sun, 27 Oct 2019 10:16:34 +0000 (+0100) Subject: Make underlying type sintE of cln::float_format_t explicit. X-Git-Tag: cln_1-3-5~37 X-Git-Url: https://www.ginac.de/CLN/cln.git//cln.git?a=commitdiff_plain;h=f725e59b4fa80b0607b2260a6adde4e3c0cbb419;p=cln.git Make underlying type sintE of cln::float_format_t explicit. Suggested by Jan Rheinländer . --- 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