Compiler warnings: Conversion from size_t to int

This commit is contained in:
Shahram Najm 2022-12-19 12:24:01 +00:00
parent 96bdbcd70f
commit 0466577c1e
2 changed files with 3 additions and 2 deletions

View File

@ -557,7 +557,8 @@ static int pack_long(grib_accessor* a, const long* val, size_t* len)
static int value_count(grib_accessor* a, long* count)
{
int ret = 0, size, type, idx;
int ret = 0, type = 0, idx = 0;
size_t size = 0;
grib_accessor_bufr_data_element* self = (grib_accessor_bufr_data_element*)a;
if (!self->compressedData) {

View File

@ -137,7 +137,7 @@ bufr_descriptors_array* grib_bufr_descriptors_array_append(bufr_descriptors_arra
bufr_descriptors_array* grib_bufr_descriptors_array_push_front(bufr_descriptors_array* v, bufr_descriptor* val)
{
int i;
size_t i = 0;
if (!v) {
size_t start_size = DYN_ARRAY_SIZE_INIT;
size_t start_incsize = DYN_ARRAY_SIZE_INCR;