From d397b5b90be389b57d3c36f9565a81276b988d7f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 10 Nov 2004 21:28:06 +0000 Subject: [PATCH] Added sizeof tests of istream::pos_type and off_type to osgunittests. Added debuggin messages to endian handling code in Archive::open(). --- examples/osgunittests/osgunittests.cpp | 4 ++++ src/osgDB/Archive.cpp | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/osgunittests/osgunittests.cpp b/examples/osgunittests/osgunittests.cpp index 2062964d7..0e0a80a6b 100644 --- a/examples/osgunittests/osgunittests.cpp +++ b/examples/osgunittests/osgunittests.cpp @@ -112,6 +112,10 @@ void sizeOfTest() #endif std::cout<<"sizeof(float)=="<(&endianTestWord),4); bool doEndianSwap = (endianTestWord!=ENDIAN_TEST_NUMBER); @@ -256,6 +256,9 @@ bool Archive::open(const std::string& filename, ArchiveStatus status, unsigned i osg::swapBytes(reinterpret_cast(&_version),sizeof(_version)); } + osg::notify(osg::NOTICE)<<"Archive::open() doEndianSwap="<