From 56048d13b73ec6e6a9c59d62e82f41e69a3994bd Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 25 Mar 2025 18:35:47 +0100 Subject: More safety with pointers using VLA function parameters --- tools/expected_distributions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/expected_distributions.h b/tools/expected_distributions.h index 60e7500..039e4d4 100644 --- a/tools/expected_distributions.h +++ b/tools/expected_distributions.h @@ -167,7 +167,7 @@ check_table(uint64_t *exp, tableinfo_t *info) } static bool -check_cocsep(uint64_t data_size, const void *data) +check_cocsep(size_t data_size, const void *data) { tableinfo_t info; @@ -189,7 +189,7 @@ unknown_h48(uint8_t h, uint8_t k) } STATIC bool -check_distribution(const char *solver, uint64_t data_size, const void *data) +check_distribution(const char *solver, size_t data_size, const void *data) { const char *str; tableinfo_t info = {0}; -- cgit v1.3