From 9935b0fa27498e1cbeb0c4f207a89eb9946f4916 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 20 Feb 2006 15:46:29 +0000 Subject: [PATCH] Added missing swap byte operations to readVec*sArray() methods. --- src/osgPlugins/ive/DataInputStream.cpp | 52 +++++++++++++++++++++----- 1 file changed, 43 insertions(+), 9 deletions(-) diff --git a/src/osgPlugins/ive/DataInputStream.cpp b/src/osgPlugins/ive/DataInputStream.cpp index f23cdf5b0..623afc2e8 100644 --- a/src/osgPlugins/ive/DataInputStream.cpp +++ b/src/osgPlugins/ive/DataInputStream.cpp @@ -456,7 +456,8 @@ osg::Array* DataInputStream::readArray(){ } } -osg::IntArray* DataInputStream::readIntArray(){ +osg::IntArray* DataInputStream::readIntArray() +{ int size = readInt(); osg::IntArray* a = new osg::IntArray(size); @@ -468,13 +469,14 @@ osg::IntArray* DataInputStream::readIntArray(){ if (_verboseOutput) std::cout<<"read/writeIntArray() ["<