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/coord/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/solvers/coord/common.h') diff --git a/src/solvers/coord/common.h b/src/solvers/coord/common.h index 8fd405c..c512b33 100644 --- a/src/solvers/coord/common.h +++ b/src/solvers/coord/common.h @@ -9,7 +9,7 @@ STATIC size_t coord_gendata_generic(const coord_t [static 1], unsigned char *); STATIC void append_coord_name(const coord_t [static 1], char *); STATIC bool solution_lastqt_cw(const solution_moves_t [static 1]); STATIC bool coord_can_switch(const coord_t [static 1], const unsigned char *, - size_t n, const uint8_t [n]); + size_t, const uint8_t *); STATIC uint64_t coord_coord_generic( @@ -164,7 +164,7 @@ coord_can_switch( const coord_t coord[static 1], const unsigned char *data, size_t n, - const uint8_t moves[n] + const uint8_t *moves ) { /* -- cgit v1.3