summaryrefslogtreecommitdiff
path: root/libsi/si.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsi/si.h')
-rw-r--r--libsi/si.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsi/si.h b/libsi/si.h
index 31d17cb..d2ac417 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.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)) {