mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Remove unused float serialization
This commit is contained in:
committed by
Pieter Wuille
parent
b295395664
commit
e40224d0c7
@@ -27,16 +27,4 @@ FUZZ_TARGET(float)
|
||||
stream >> d_deserialized;
|
||||
assert(d == d_deserialized);
|
||||
}
|
||||
|
||||
{
|
||||
const float f = fuzzed_data_provider.ConsumeFloatingPoint<float>();
|
||||
(void)memusage::DynamicUsage(f);
|
||||
assert(ser_uint32_to_float(ser_float_to_uint32(f)) == f);
|
||||
|
||||
CDataStream stream(SER_NETWORK, INIT_PROTO_VERSION);
|
||||
stream << f;
|
||||
float f_deserialized;
|
||||
stream >> f_deserialized;
|
||||
assert(f == f_deserialized);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user