Minor tweaks of ints to unsigned ints

This commit is contained in:
Robert Osfield
2006-05-16 21:20:36 +00:00
parent 690aeea7e4
commit e1c77dfe2a
3 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ void Uniform::write(DataOutputStream* out){
if ( out->getVersion() >= VERSION_0016 )
{
out->writeInt(getNumElements());
out->writeUInt(getNumElements());
if( getFloatArray() ) out->writeArray( getFloatArray() );
if( getIntArray() ) out->writeArray( getIntArray() );
@@ -173,7 +173,7 @@ void Uniform::read(DataInputStream* in)
if ( in->getVersion() >= VERSION_0016 )
{
setNumElements( in->readInt() );
setNumElements( in->readUInt() );
osg::Array* data = in->readArray();
setArray( dynamic_cast<osg::FloatArray*>(data) );