Skip to content

Commit

Permalink
Replaced long long with uint64_t
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Jun 19, 2017
1 parent eab845a commit 605b361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/osgPlugins/osg/BinaryStreamOperator.h
Expand Up @@ -90,7 +90,7 @@ class BinaryOutputIterator : public osgDB::OutputIterator
{
if ( mark._name=="{" )
{
long long size = 0;
uint64_t size = 0;
_beginPositions.push_back( _out->tellp() );
_out->write( (char*)&size, osgDB::INT64_SIZE );
}
Expand All @@ -101,7 +101,7 @@ class BinaryOutputIterator : public osgDB::OutputIterator
_out->seekp( beginPos );

std::streampos size64 = pos - beginPos;
long long size = (long long) size64;
uint64_t size = (uint64_t) size64;
_out->write( (char*)&size, osgDB::INT64_SIZE);
_out->seekp( pos );
}
Expand Down Expand Up @@ -251,7 +251,7 @@ class BinaryInputIterator : public osgDB::InputIterator
// to accommodate any block size.
if (getInputStream() && getInputStream()->getFileVersion() > 148)
{
long long size = 0;
uint64_t size = 0;
_in->read( (char*)&size, osgDB::INT64_SIZE);
if ( _byteSwap ) osg::swapBytes( (char*)&size, osgDB::INT64_SIZE);
_blockSizes.push_back( size );
Expand Down

0 comments on commit 605b361

Please sign in to comment.