diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-27 09:03:51 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-27 09:03:51 +0200 |
| commit | 7c934801f88c640970ad41b5ddd39f4e39609f28 (patch) | |
| tree | 76a065db76fbcbdec818b8b6cc8b108ac1c9eb49 /src/solvers/dispatch.h | |
| parent | 243a852d31483d10983c50978d1d4471efd0e553 (diff) | |
| download | nissy-core-7c934801f88c640970ad41b5ddd39f4e39609f28.tar.gz nissy-core-7c934801f88c640970ad41b5ddd39f4e39609f28.zip | |
Removed VLA notation from function parameters.
I found out that this gives undefined behavior when then size is 0.
Better not to have it at all, it is confusing for other developers anyway.
Diffstat (limited to '')
| -rw-r--r-- | src/solvers/dispatch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/solvers/dispatch.h b/src/solvers/dispatch.h index 7cf4441..484983e 100644 --- a/src/solvers/dispatch.h +++ b/src/solvers/dispatch.h | |||
| @@ -2,7 +2,7 @@ typedef struct { | |||
| 2 | const char *prefix; | 2 | const char *prefix; |
| 3 | long long (*dataid)(const char *, char [static NISSY_SIZE_DATAID]); | 3 | long long (*dataid)(const char *, char [static NISSY_SIZE_DATAID]); |
| 4 | long long (*gendata)( | 4 | long long (*gendata)( |
| 5 | const char *, unsigned long long n, unsigned char [n]); | 5 | const char *, unsigned long long, unsigned char *); |
| 6 | long long (*checkdata)( | 6 | long long (*checkdata)( |
| 7 | const char *, unsigned long long, const unsigned char *); | 7 | const char *, unsigned long long, const unsigned char *); |
| 8 | long long (*solve)(oriented_cube_t, const char *, unsigned, unsigned, | 8 | long long (*solve)(oriented_cube_t, const char *, unsigned, unsigned, |
