Change unsigned long to unsigned int to avoid 64/32 bit problems.

This commit is contained in:
Robert Osfield 2005-02-03 13:10:03 +00:00
parent 7573cc6036
commit 7b6a48b053

View File

@ -61,8 +61,8 @@ class CameraPacket {
if( _byte_order == 0x78563412 ) // We're backwards if( _byte_order == 0x78563412 ) // We're backwards
{ {
swapBytes( _byte_order ); swapBytes( _byte_order );
swapBytes( _masterKilled ); swapBytes( _masterKilled );
for( int i = 0; i < 16; i++ ) for( int i = 0; i < 16; i++ )
swapBytes( _matrix.ptr()[i] ); swapBytes( _matrix.ptr()[i] );
// umm.. we should byte swap _frameStamp too... // umm.. we should byte swap _frameStamp too...
@ -73,7 +73,7 @@ class CameraPacket {
void setMasterKilled(const bool flag) { _masterKilled = flag; } void setMasterKilled(const bool flag) { _masterKilled = flag; }
const bool getMasterKilled() const { return _masterKilled; } const bool getMasterKilled() const { return _masterKilled; }
unsigned long _byte_order; unsigned int _byte_order;
bool _masterKilled; bool _masterKilled;
osg::Matrix _matrix; osg::Matrix _matrix;