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/checkdata.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/solvers/coord/checkdata.h') diff --git a/src/solvers/coord/checkdata.h b/src/solvers/coord/checkdata.h index 81394c7..791761f 100644 --- a/src/solvers/coord/checkdata.h +++ b/src/solvers/coord/checkdata.h @@ -1,11 +1,11 @@ STATIC long long checkdata_coord( - const char *, unsigned long long n, const unsigned char [n]); + const char *, unsigned long long, const unsigned char *); STATIC long long checkdata_coord( const char *solver, unsigned long long data_size, - const unsigned char data[data_size] + const unsigned char *data ) { coord_t *coord; -- cgit v1.3