]> git.mxchange.org Git - flightgear.git/commitdiff
David Fries:
authortorsten <torsten>
Wed, 10 Mar 2010 08:33:10 +0000 (08:33 +0000)
committerTim Moore <timoore33@gmail.com>
Thu, 11 Mar 2010 07:59:52 +0000 (08:59 +0100)
64bit fixes

src/Network/jsclient.cxx

index 1fff200ad012e0cfb694ded55ad4aed4bda905ae..c94aeb66bf75b1e295421c5d169964a96bb75f15 100644 (file)
@@ -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 )