From f171627e10b0df2708c87934bc8931d6a8bc6086 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 5 Jul 2019 11:09:01 +0100 Subject: [PATCH] Test: Add variable to tune number of values --- tests/grib_ecc-604-encode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/grib_ecc-604-encode.c b/tests/grib_ecc-604-encode.c index 82e245457..bd9046469 100644 --- a/tests/grib_ecc-604-encode.c +++ b/tests/grib_ecc-604-encode.c @@ -19,12 +19,13 @@ int opt_write = 0; /* If 1 write handle to file */ static int encode_values(grib_handle* h, char *output_file) { double *values; - size_t size = 1000 * 1000; + const size_t DIM = 1000; + size_t size = DIM * DIM; size_t i = 0; values = (double*)malloc(size*sizeof(double)); for (i=0; i