X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinfloat.h;h=d16570fc057fa296a349f2b69bb167d68a960ceb;hb=HEAD;hp=f6e6d1fb5b493a045022fefc7af2c1ecc2aec335;hpb=d3c55a54b4c6ed0f740a87e5446e4054888bdcdf;p=libs%2Fdatafile.git diff --git a/source/binfloat.h b/source/binfloat.h index f6e6d1f..db3e924 100644 --- a/source/binfloat.h +++ b/source/binfloat.h @@ -20,8 +20,8 @@ struct BinFloat { struct Bits { - unsigned exponent; - unsigned mantissa; + unsigned exponent = 8; + unsigned mantissa = 23; Bits(unsigned); }; @@ -29,10 +29,10 @@ struct BinFloat template struct MatchingInt; - bool sign; - bool infinity; - int exponent; - std::uint64_t mantissa; + bool sign = false; + bool infinity = false; + int exponent = 0; + std::uint64_t mantissa = 0; static BinFloat explode(std::uint64_t, const Bits &);