diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-21 14:33:01 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-21 14:44:07 +0200 |
| commit | 510a7471348788fccba6b7c4b9f7b7cc9aee6ba9 (patch) | |
| tree | 58df7791242d9a4f52e80da93ad3af20ed5e3528 /test/102_cocsep_selfsim | |
| parent | 1d9b8acfeece68c4f55d2499d8aed127f98a383c (diff) | |
| download | nissy-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/102_cocsep_selfsim')
| -rw-r--r-- | test/102_cocsep_selfsim/cocsep_selfsim_tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/102_cocsep_selfsim/cocsep_selfsim_tests.c b/test/102_cocsep_selfsim/cocsep_selfsim_tests.c index dd778aa..0ead3b4 100644 --- a/test/102_cocsep_selfsim/cocsep_selfsim_tests.c +++ b/test/102_cocsep_selfsim/cocsep_selfsim_tests.c | |||
| @@ -7,19 +7,19 @@ | |||
| 7 | */ | 7 | */ |
| 8 | #include "../test.h" | 8 | #include "../test.h" |
| 9 | 9 | ||
| 10 | size_t gendata_cocsep(void *, uint64_t *, cube_t *); | 10 | size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *); |
| 11 | int64_t coord_cocsep(cube_t); | 11 | int64_t coord_cocsep(cube_t); |
| 12 | 12 | ||
| 13 | void run(void) { | 13 | void run(void) { |
| 14 | char str[STRLENMAX]; | 14 | char str[STRLENMAX]; |
| 15 | char buf[2000000]; | 15 | unsigned char buf[2000000]; |
| 16 | uint32_t *cocsepdata, data; | 16 | uint32_t *cocsepdata, data; |
| 17 | int64_t coord, coclass; | 17 | int64_t coord, coclass; |
| 18 | uint64_t selfsim[COCSEP_CLASSES], sim, t; | 18 | uint64_t selfsim[COCSEP_CLASSES], sim, t; |
| 19 | cube_t cube, rep[COCSEP_CLASSES]; | 19 | cube_t cube, rep[COCSEP_CLASSES]; |
| 20 | 20 | ||
| 21 | gendata_cocsep(buf, selfsim, rep); | 21 | gendata_cocsep(buf, selfsim, rep); |
| 22 | cocsepdata = (uint32_t *)((char *)buf + INFOSIZE); | 22 | cocsepdata = (uint32_t *)(buf + INFOSIZE); |
| 23 | 23 | ||
| 24 | /* All cases in the same test so we do not generate data many times */ | 24 | /* All cases in the same test so we do not generate data many times */ |
| 25 | 25 | ||
