diff options
Diffstat (limited to 'libsi/si.h')
-rw-r--r-- | libsi/si.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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.3 2003/12/26 14:09:30 kls Exp $ + * $Id: si.h 1.5 2004/01/09 15:59:53 kls Exp $ * * ***************************************************************************/ @@ -207,7 +207,7 @@ public: int getVersionNumber() const; int getSectionNumber() const; int getLastSectionNumber() const; - bool moreThanOneSection() const { return getLastSectionNumber()>1; } + bool moreThanOneSection() const { return getLastSectionNumber()>0; } }; class VariableLengthPart : public Object { @@ -316,7 +316,7 @@ typedef uint64_t SixtyFourBit; template <typename T> class TypeLoop : public Loop { public: - int getCount() const { return getLength()/sizeof(T); } + int getCount() { return getLength()/sizeof(T); } T operator[](const unsigned int index) const { switch (sizeof(T)) { |