CopernicaMarketingSoftware / AMQP-CPP

C++ library for asynchronous non-blocking communication with RabbitMQ
Apache License 2.0
864 stars 334 forks source link

Wrong byte order for FLOAT and DOUBLE types in headers #519

Open mpollov opened 6 months ago

mpollov commented 6 months ago

Describe the bug Implementation of InBuffer::nextFloat(), InBuffer::nextDouble() and OutBuffer::add(float value), OutBuffer::add(double value) don't use byte order correction.

Expected behavior and actual behavior Readed four byte FLOAT or eight byte DOUBLE corrected as expected for host platform.