From: torsten Date: Wed, 10 Mar 2010 08:33:10 +0000 (+0000) Subject: David Fries: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=91f0059c89c92ce18caec3d173ec07fd402bdc3f;p=flightgear.git David Fries: 64bit fixes --- diff --git a/src/Network/jsclient.cxx b/src/Network/jsclient.cxx index 1fff200ad..c94aeb66b 100644 --- a/src/Network/jsclient.cxx +++ b/src/Network/jsclient.cxx @@ -91,8 +91,7 @@ bool FGJsClient::process() { if ( io->get_type() == sgFileType ) { if ( io->read( (char *)(& buf), length ) == length ) { SG_LOG( SG_IO, SG_DEBUG, "Success reading data." ); - long int *msg; - msg = (long int *)buf; + int32_t *msg = (int32_t *)buf; for( int i = 0; i < 4; ++i ) { axis[i] = ((double)msg[i] / 2147483647.0); @@ -105,8 +104,7 @@ bool FGJsClient::process() { } else { while ( io->read( (char *)(& buf), length ) == length ) { SG_LOG( SG_IO, SG_DEBUG, "Success reading data." ); - long int *msg; - msg = (long int *)buf; + int32_t *msg = (int32_t *)buf; SG_LOG( SG_IO, SG_DEBUG, "ax0 = " << msg[0] << " ax1 = " << msg[1] << "ax2 = " << msg[2] << "ax3 = " << msg[3]); for( int i = 0; i < 4; ++i )