]> git.mxchange.org Git - flightgear.git/commit
Fix transmission of float and double values in generic protocol
authorTim Moore <timoore@redhat.com>
Mon, 24 Aug 2009 16:06:06 +0000 (18:06 +0200)
committerTim Moore <timoore@redhat.com>
Mon, 24 Aug 2009 16:06:06 +0000 (18:06 +0200)
commit62620177aa81fbf94ce365c3b5e08b3d3edf7d36
treeff477c597f1497fc1ca9939d13a779c62ade3670
parent0a64405cadb8b7154031c648b3302bf6b2549f7d
Fix transmission of float and double values in generic protocol

gcc -Wall -Werror turned up some problems with the type-punning of pointers
used to write the message buffer; it turns out that truncated ints were being
written to the message buffer when values needed to be swapped to network byte
order.
src/Network/generic.cxx