From 7c934801f88c640970ad41b5ddd39f4e39609f28 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 27 May 2025 09:03:51 +0200 Subject: 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. --- src/solvers/dispatch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/solvers/dispatch.h') 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 { const char *prefix; long long (*dataid)(const char *, char [static NISSY_SIZE_DATAID]); long long (*gendata)( - const char *, unsigned long long n, unsigned char [n]); + const char *, unsigned long long, unsigned char *); long long (*checkdata)( const char *, unsigned long long, const unsigned char *); long long (*solve)(oriented_cube_t, const char *, unsigned, unsigned, -- cgit v1.3