From 7b6a48b0538e3bd393d140e7fb01a97ce8986cdd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 3 Feb 2005 13:10:03 +0000 Subject: [PATCH] Change unsigned long to unsigned int to avoid 64/32 bit problems. --- examples/osgcluster/osgcluster.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/osgcluster/osgcluster.cpp b/examples/osgcluster/osgcluster.cpp index ef1d487ca..cb0e6b42a 100644 --- a/examples/osgcluster/osgcluster.cpp +++ b/examples/osgcluster/osgcluster.cpp @@ -61,8 +61,8 @@ class CameraPacket { if( _byte_order == 0x78563412 ) // We're backwards { swapBytes( _byte_order ); - swapBytes( _masterKilled ); - for( int i = 0; i < 16; i++ ) + swapBytes( _masterKilled ); + for( int i = 0; i < 16; i++ ) swapBytes( _matrix.ptr()[i] ); // umm.. we should byte swap _frameStamp too... @@ -73,7 +73,7 @@ class CameraPacket { void setMasterKilled(const bool flag) { _masterKilled = flag; } const bool getMasterKilled() const { return _masterKilled; } - unsigned long _byte_order; + unsigned int _byte_order; bool _masterKilled; osg::Matrix _matrix;