diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-05-18 12:37:02 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-05-24 16:15:05 -0700 |
commit | 66545da2008cd9e806e41b74522ded259cd64f86 (patch) | |
tree | 0e735db6f3914d8938549e16ca55305b2535df5b /src/compat/assumptions.h | |
parent | fff1cae43af959a601cf2558cb3c77f3c2b1aa80 (diff) | |
download | bitcoin-66545da2008cd9e806e41b74522ded259cd64f86.tar.xz |
Remove support for double serialization
Diffstat (limited to 'src/compat/assumptions.h')
-rw-r--r-- | src/compat/assumptions.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/compat/assumptions.h b/src/compat/assumptions.h index 5f50cde3ff..7a254c3b67 100644 --- a/src/compat/assumptions.h +++ b/src/compat/assumptions.h @@ -36,11 +36,6 @@ static_assert(std::numeric_limits<double>::is_iec559, "IEEE 754 double assumed") // Example(s): Everywhere :-) static_assert(std::numeric_limits<unsigned char>::digits == 8, "8-bit byte assumed"); -// Assumption: We assume floating-point widths. -// Example(s): Type punning in serialization code (ser_{float,double}_to_uint{32,64}). -static_assert(sizeof(float) == 4, "32-bit float assumed"); -static_assert(sizeof(double) == 8, "64-bit double assumed"); - // Assumption: We assume integer widths. // Example(s): GetSizeOfCompactSize and WriteCompactSize in the serialization // code. |