mirror of https://github.com/ecmwf/eccodes.git
Compiler warning: [-Walloc-size-larger-than=]
This commit is contained in:
parent
fba1fb2063
commit
eb4220f455
|
@ -1539,7 +1539,7 @@ static int cube_position(const hypercube* h, const request* r)
|
||||||
|
|
||||||
static void reserve_index_cache(hypercube* h, int size)
|
static void reserve_index_cache(hypercube* h, int size)
|
||||||
{
|
{
|
||||||
if (size == 0)
|
if (size <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (h->index_cache != 0)
|
if (h->index_cache != 0)
|
||||||
|
|
Loading…
Reference in New Issue