diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-25 18:35:47 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-25 18:35:47 +0100 |
| commit | 56048d13b73ec6e6a9c59d62e82f41e69a3994bd (patch) | |
| tree | 49fc5d50e739a399897425756c08a73ba5924ddb /tools | |
| parent | 0f4931c8de298b0f97aba1757c9538f48adb30c6 (diff) | |
| download | nissy-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.h | 4 |
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 | ||
| 169 | static bool | 169 | static bool |
| 170 | check_cocsep(uint64_t data_size, const void *data) | 170 | check_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 | ||
| 191 | STATIC bool | 191 | STATIC bool |
| 192 | check_distribution(const char *solver, uint64_t data_size, const void *data) | 192 | check_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}; |
