From 56048d13b73ec6e6a9c59d62e82f41e69a3994bd Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 25 Mar 2025 18:35:47 +0100 Subject: More safety with pointers using VLA function parameters --- src/arch/common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/arch/common.h') diff --git a/src/arch/common.h b/src/arch/common.h index 52e0fc7..5c1efde 100644 --- a/src/arch/common.h +++ b/src/arch/common.h @@ -1,6 +1,6 @@ STATIC_INLINE int popcount_u32(uint32_t); -STATIC void pieces(cube_t *, uint8_t [static 8], uint8_t [static 12]); +STATIC void pieces(cube_t [static 1], uint8_t [static 8], uint8_t [static 12]); STATIC_INLINE bool equal(cube_t, cube_t); STATIC_INLINE cube_t invertco(cube_t); STATIC_INLINE cube_t compose_edges(cube_t, cube_t); @@ -14,9 +14,9 @@ STATIC_INLINE int64_t coord_cocsep(cube_t); STATIC_INLINE int64_t coord_eo(cube_t); STATIC_INLINE int64_t coord_esep(cube_t); -STATIC_INLINE void copy_corners(cube_t *, cube_t); -STATIC_INLINE void copy_edges(cube_t *, cube_t); -STATIC_INLINE void set_eo(cube_t *, int64_t); +STATIC_INLINE void copy_corners(cube_t [static 1], cube_t); +STATIC_INLINE void copy_edges(cube_t [static 1], cube_t); +STATIC_INLINE void set_eo(cube_t [static 1], int64_t); STATIC_INLINE cube_t invcoord_esep(int64_t); STATIC_INLINE void invcoord_esep_array(int64_t, int64_t, uint8_t[static 12]); -- cgit v1.3