CopernicaMarketingSoftware / AMQP-CPP

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

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

Open mpollov opened 10 months ago

mpollov commented 10 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.