aboutsummaryrefslogtreecommitdiff
path: root/test/110_coord_invcoord_h48
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-21 14:33:01 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-21 14:44:07 +0200
commit510a7471348788fccba6b7c4b9f7b7cc9aee6ba9 (patch)
tree58df7791242d9a4f52e80da93ad3af20ed5e3528 /test/110_coord_invcoord_h48
parent1d9b8acfeece68c4f55d2499d8aed127f98a383c (diff)
downloadnissy-core-510a7471348788fccba6b7c4b9f7b7cc9aee6ba9.tar.gz
nissy-core-510a7471348788fccba6b7c4b9f7b7cc9aee6ba9.zip
Always use unsigned char * for data buffers
Before this commit I was inconsistently using one of void *, char * and uint8_t *.
Diffstat (limited to 'test/110_coord_invcoord_h48')
-rw-r--r--test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c6
1 files changed, 3 insertions, 3 deletions
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 @@
1#include "../test.h" 1#include "../test.h"
2 2
3size_t gendata_cocsep(void *, uint64_t *, cube_t *); 3size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *);
4int64_t coord_h48(cube_t, const uint32_t *, uint8_t); 4int64_t coord_h48(cube_t, const uint32_t *, uint8_t);
5cube_t invcoord_h48(int64_t, const cube_t *, uint8_t); 5cube_t invcoord_h48(int64_t, const cube_t *, uint8_t);
6cube_t transform(cube_t, uint8_t); 6cube_t transform(cube_t, uint8_t);
@@ -10,14 +10,14 @@ void run(void) {
10 int i; 10 int i;
11 bool found; 11 bool found;
12 uint8_t h, t; 12 uint8_t h, t;
13 char buf[2000000]; 13 unsigned char buf[2000000];
14 uint32_t *cocsepdata; 14 uint32_t *cocsepdata;
15 uint64_t selfsim[COCSEP_CLASSES]; 15 uint64_t selfsim[COCSEP_CLASSES];
16 int64_t c, cc; 16 int64_t c, cc;
17 cube_t cube, invc, rep[COCSEP_CLASSES]; 17 cube_t cube, invc, rep[COCSEP_CLASSES];
18 18
19 gendata_cocsep(buf, selfsim, rep); 19 gendata_cocsep(buf, selfsim, rep);
20 cocsepdata = (uint32_t *)((char *)buf + INFOSIZE); 20 cocsepdata = (uint32_t *)(buf + INFOSIZE);
21 21
22 i = 1; 22 i = 1;
23 h = 11; 23 h = 11;

Generated with cgit - Back to sebastiano.tronto.net