]> www.ginac.de Git - cln.git/commitdiff
Make underlying type sintE of cln::float_format_t explicit.
authorRichard Kreckel <kreckel@ginac.de>
Sun, 27 Oct 2019 10:16:34 +0000 (11:16 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Sun, 27 Oct 2019 10:16:34 +0000 (11:16 +0100)
Suggested by Jan Rheinländer <jrheinlaender@gmx.de>.

include/cln/floatformat.h

index 35eb4d1017d87c29b4b65e758c51e20d61f1aac2..b3140898cfdfb062647b8b8f54d3a2fe261f84ab 100644 (file)
@@ -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