From 510a7471348788fccba6b7c4b9f7b7cc9aee6ba9 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 21 Apr 2025 14:33:01 +0200 Subject: Always use unsigned char * for data buffers Before this commit I was inconsistently using one of void *, char * and uint8_t *. --- test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/110_coord_invcoord_h48') diff --git a/test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c b/test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c index 025ff2b..fdc4619 100644 --- a/test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c +++ b/test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c @@ -1,6 +1,6 @@ #include "../test.h" -size_t gendata_cocsep(void *, uint64_t *, cube_t *); +size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *); int64_t coord_h48(cube_t, const uint32_t *, uint8_t); cube_t invcoord_h48(int64_t, const cube_t *, uint8_t); cube_t transform(cube_t, uint8_t); @@ -10,14 +10,14 @@ void run(void) { int i; bool found; uint8_t h, t; - char buf[2000000]; + unsigned char buf[2000000]; uint32_t *cocsepdata; uint64_t selfsim[COCSEP_CLASSES]; int64_t c, cc; cube_t cube, invc, rep[COCSEP_CLASSES]; gendata_cocsep(buf, selfsim, rep); - cocsepdata = (uint32_t *)((char *)buf + INFOSIZE); + cocsepdata = (uint32_t *)(buf + INFOSIZE); i = 1; h = 11; -- cgit v1.3