Commit d7ae0c99 authored by Steve Lhomme's avatar Steve Lhomme

libebml2: assert if we're trying to read an integer value that is not in an integer class

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@727 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 39e0c1d0
......@@ -425,6 +425,7 @@ void EBML_IntegerSetValue(ebml_integer *Element, int64_t Value)
int64_t EBML_IntegerValue(const ebml_integer *Element)
{
#if !defined(NDEBUG)
assert(Node_IsPartOf(Element,EBML_INTEGER_CLASS) || Node_IsPartOf(Element,EBML_SINTEGER_CLASS));
assert(Element->Base.bValueIsSet);
#endif
return Element->Value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment