From 605b3619cd706e6dcdaeab1504e3b3cc00bb5aa4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 19 Jun 2017 15:33:52 +0100 Subject: [PATCH] Replaced long long with uint64_t --- src/osgPlugins/osg/BinaryStreamOperator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgPlugins/osg/BinaryStreamOperator.h b/src/osgPlugins/osg/BinaryStreamOperator.h index fd4453234..804d79f8c 100644 --- a/src/osgPlugins/osg/BinaryStreamOperator.h +++ b/src/osgPlugins/osg/BinaryStreamOperator.h @@ -90,7 +90,7 @@ public: { if ( mark._name=="{" ) { - long long size = 0; + uint64_t size = 0; _beginPositions.push_back( _out->tellp() ); _out->write( (char*)&size, osgDB::INT64_SIZE ); } @@ -101,7 +101,7 @@ public: _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 ); } @@ -251,7 +251,7 @@ public: // 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 );