From 147c3ac163fd90b7caddcd604b4fe5f5ec1a3a3a Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 15 Apr 2010 15:45:54 +0000 Subject: [PATCH] v1: fix the default size use in (signed)integers git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@126 a6f86f6d-0131-4f8e-9e7b-e335508773d5 --- ebml/EbmlSInteger.h | 2 +- ebml/EbmlUInteger.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ebml/EbmlSInteger.h b/ebml/EbmlSInteger.h index 9cc6589..80d5704 100644 --- a/ebml/EbmlSInteger.h +++ b/ebml/EbmlSInteger.h @@ -62,7 +62,7 @@ class EBML_DLL_API EbmlSInteger : public EbmlElement { /*! Set the default size of the integer (usually 1,2,4 or 8) */ - virtual void SetDefaultSize(uint64 nDefaultSize = DEFAULT_INT_SIZE) {SetSize_(nDefaultSize);} + virtual void SetDefaultSize(uint64 nDefaultSize = DEFAULT_INT_SIZE) {EbmlElement::SetDefaultSize(nDefaultSize); SetSize_(nDefaultSize);} virtual bool ValidateSize() const {return (GetSize() <= 8);} filepos_t RenderData(IOCallback & output, bool bForceRender, bool bWithDefault = false); diff --git a/ebml/EbmlUInteger.h b/ebml/EbmlUInteger.h index 1cc2c03..eacc623 100644 --- a/ebml/EbmlUInteger.h +++ b/ebml/EbmlUInteger.h @@ -60,7 +60,7 @@ class EBML_DLL_API EbmlUInteger : public EbmlElement { /*! Set the default size of the integer (usually 1,2,4 or 8) */ - virtual void SetDefaultSize(uint64 nDefaultSize = DEFAULT_UINT_SIZE) {SetSize_(nDefaultSize);} + virtual void SetDefaultSize(uint64 nDefaultSize = DEFAULT_UINT_SIZE) {EbmlElement::SetDefaultSize(nDefaultSize); SetSize_(nDefaultSize);} virtual bool ValidateSize() const {return (GetSize() <= 8);} filepos_t RenderData(IOCallback & output, bool bForceRender, bool bWithDefault = false);