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
This commit is contained in:
Steve Lhomme 2010-04-15 15:45:54 +00:00
parent 19ae0bb418
commit 147c3ac163
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);