Fix compilation warning with unecessary comparison.

This commit is contained in:
Pedro Alvarez 2020-09-04 12:24:29 +01:00
parent b59eca1b27
commit 08a0d6bc0a
1 changed files with 8 additions and 8 deletions

View File

@ -211,7 +211,7 @@ public:
// Get subheader at specified index // Get subheader at specified index
SubH* get(uint32_t idx) SubH* get(uint32_t idx)
{ {
if (nof_subheaders > 0 && idx >= 0 && idx < (uint32_t)nof_subheaders) { if (nof_subheaders > 0 && idx < (uint32_t)nof_subheaders) {
return &subheaders[idx]; return &subheaders[idx];
} else { } else {
return nullptr; return nullptr;