aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-03-25 18:35:47 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2025-03-25 18:35:47 +0100
commit56048d13b73ec6e6a9c59d62e82f41e69a3994bd (patch)
tree49fc5d50e739a399897425756c08a73ba5924ddb /tools
parent0f4931c8de298b0f97aba1757c9538f48adb30c6 (diff)
downloadnissy-core-56048d13b73ec6e6a9c59d62e82f41e69a3994bd.tar.gz
nissy-core-56048d13b73ec6e6a9c59d62e82f41e69a3994bd.zip
More safety with pointers using VLA function parameters
Diffstat (limited to 'tools')
-rw-r--r--tools/expected_distributions.h4
1 files changed, 2 insertions, 2 deletions
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)
167} 167}
168 168
169static bool 169static bool
170check_cocsep(uint64_t data_size, const void *data) 170check_cocsep(size_t data_size, const void *data)
171{ 171{
172 tableinfo_t info; 172 tableinfo_t info;
173 173
@@ -189,7 +189,7 @@ unknown_h48(uint8_t h, uint8_t k)
189} 189}
190 190
191STATIC bool 191STATIC bool
192check_distribution(const char *solver, uint64_t data_size, const void *data) 192check_distribution(const char *solver, size_t data_size, const void *data)
193{ 193{
194 const char *str; 194 const char *str;
195 tableinfo_t info = {0}; 195 tableinfo_t info = {0};

Generated with cgit - Back to sebastiano.tronto.net