Fixed a warning about using NULL in calculations
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@94 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
parent
4134860d67
commit
b3985c4976
@ -184,7 +184,7 @@ bool EbmlMaster::ProcessMandatory()
|
||||
return true;
|
||||
}
|
||||
|
||||
assert(Context.GetSize() != NULL);
|
||||
assert(Context.GetSize() != 0);
|
||||
|
||||
unsigned int EltIdx;
|
||||
for (EltIdx = 0; EltIdx < EBML_CTX_SIZE(Context); EltIdx++) {
|
||||
@ -198,7 +198,7 @@ bool EbmlMaster::ProcessMandatory()
|
||||
|
||||
bool EbmlMaster::CheckMandatory() const
|
||||
{
|
||||
assert(Context.GetSize() != NULL);
|
||||
assert(Context.GetSize() != 0);
|
||||
|
||||
unsigned int EltIdx;
|
||||
for (EltIdx = 0; EltIdx < EBML_CTX_SIZE(Context); EltIdx++) {
|
||||
@ -218,7 +218,7 @@ bool EbmlMaster::CheckMandatory() const
|
||||
|
||||
std::vector<std::string> EbmlMaster::FindAllMissingElements()
|
||||
{
|
||||
assert(Context.GetSize() != NULL);
|
||||
assert(Context.GetSize() != 0);
|
||||
|
||||
std::vector<std::string> missingElements;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user