From 3a1058fe1fca6d10cea42786aa54abf3d0bd0b94 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 25 Dec 2003 13:30:56 +0100 Subject: [PATCH] Fixed the TypeLoop class --- libsi/si.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libsi/si.h b/libsi/si.h index 6dd10543..25fe1037 100644 --- a/libsi/si.h +++ b/libsi/si.h @@ -6,7 +6,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: si.h 1.2 2003/12/13 10:42:17 kls Exp $ + * $Id: si.h 1.3 2003/12/25 13:30:56 kls Exp $ * * ***************************************************************************/ @@ -252,6 +252,7 @@ public: private: template friend class StructureLoop; friend class DescriptorLoop; + template friend class TypeLoop; int i; }; protected: @@ -326,7 +327,7 @@ public: case 4: return data.FourBytes(index); case 8: - return (data.FourBytes(index) << 32) | data.FourBytes(index+4); + return (SixtyFourBit(data.FourBytes(index)) << 32) | data.FourBytes(index+4); } } T getNext(Iterator &it) const @@ -335,7 +336,7 @@ public: it.i+=sizeof(T); return ret; } - bool hasNext() const { return getLength() > it.i; } + bool hasNext(Iterator &it) { return getLength() > it.i; } }; class MHP_DescriptorLoop : public DescriptorLoop {