aboutsummaryrefslogtreecommitdiff
path: root/test/103_cocsep_selfsim_distribution
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/103_cocsep_selfsim_distribution
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/103_cocsep_selfsim_distribution')
-rw-r--r--test/103_cocsep_selfsim_distribution/cocsep_selfsim_distribution_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/103_cocsep_selfsim_distribution/cocsep_selfsim_distribution_tests.c b/test/103_cocsep_selfsim_distribution/cocsep_selfsim_distribution_tests.c
index a907317..90208eb 100644
--- a/test/103_cocsep_selfsim_distribution/cocsep_selfsim_distribution_tests.c
+++ b/test/103_cocsep_selfsim_distribution/cocsep_selfsim_distribution_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_cocsep(cube_t); 4int64_t coord_cocsep(cube_t);
5 5
6int bcount(uint64_t x) { 6int bcount(uint64_t x) {
@@ -15,7 +15,7 @@ int bcount(uint64_t x) {
15} 15}
16 16
17void run(void) { 17void run(void) {
18 char buf[2000000]; 18 unsigned char buf[2000000];
19 int size[65], tot, j; 19 int size[65], tot, j;
20 uint64_t i, selfsim[COCSEP_CLASSES], sim; 20 uint64_t i, selfsim[COCSEP_CLASSES], sim;
21 cube_t rep[COCSEP_CLASSES]; 21 cube_t rep[COCSEP_CLASSES];

Generated with cgit - Back to sebastiano.tronto.net