From d60c210bdadff5d8f5b9dc73a701560d54f69fff Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 9 May 2025 21:02:32 +0200 Subject: Fixes --- test/100_gendata_cocsep/gendata_cocsep_tests.c | 2 +- test/105_gendata_eoesep/gendata_eoesep_tests.c | 4 ++-- test/120_gendata_eo/gendata_eo_tests.c | 4 ++-- test/121_coorddata_dr/coorddata_dr.c | 2 +- test/122_coorddata_dreo/coorddata_dreo.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/100_gendata_cocsep/gendata_cocsep_tests.c b/test/100_gendata_cocsep/gendata_cocsep_tests.c index 46b9443..c1eef77 100644 --- a/test/100_gendata_cocsep/gendata_cocsep_tests.c +++ b/test/100_gendata_cocsep/gendata_cocsep_tests.c @@ -3,7 +3,7 @@ #define BUF_SIZE 2000000 size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *); -bool readtableinfo(uint64_t, const unsigned char *, tableinfo_t *); +int64_t readtableinfo(size_t, const unsigned char *, tableinfo_t *); void run(void) { unsigned char buf[BUF_SIZE]; diff --git a/test/105_gendata_eoesep/gendata_eoesep_tests.c b/test/105_gendata_eoesep/gendata_eoesep_tests.c index 0c22d7f..7ed9778 100644 --- a/test/105_gendata_eoesep/gendata_eoesep_tests.c +++ b/test/105_gendata_eoesep/gendata_eoesep_tests.c @@ -26,7 +26,7 @@ The test does not generate the full table. For reference, these are the values: unsigned char buf[FULLSIZE]; size_t gendata_eoesep(unsigned char [static FULLSIZE], uint8_t); -bool readtableinfo(uint64_t, const unsigned char *, tableinfo_t *); +int64_t readtableinfo(size_t, const unsigned char *, tableinfo_t *); void run(void) { uint32_t i; @@ -40,7 +40,7 @@ void run(void) { } printf("%zu\n", result); - printf("Classes (ESEP only): %zu\n", info.classes); + printf("Classes (ESEP only): %" PRIu64 "\n", info.classes); for (i = 0; i <= DEPTH; i++) printf("%" PRIu32 ": %" PRIu64 "\n", i, info.distribution[i]); } diff --git a/test/120_gendata_eo/gendata_eo_tests.c b/test/120_gendata_eo/gendata_eo_tests.c index 08c495e..ec1fd64 100644 --- a/test/120_gendata_eo/gendata_eo_tests.c +++ b/test/120_gendata_eo/gendata_eo_tests.c @@ -17,8 +17,8 @@ Pruning table values (from nissy): unsigned char buf[FULLSIZE]; -size_t gendata_coord_dispatch(const char *, unsigned char *); -bool readtableinfo(uint64_t, const unsigned char *, tableinfo_t *); +int64_t gendata_coord_dispatch(const char *, unsigned char *); +int64_t readtableinfo(size_t, const unsigned char *, tableinfo_t *); void run(void) { uint32_t i; diff --git a/test/121_coorddata_dr/coorddata_dr.c b/test/121_coorddata_dr/coorddata_dr.c index e8407c8..d8ac94a 100644 --- a/test/121_coorddata_dr/coorddata_dr.c +++ b/test/121_coorddata_dr/coorddata_dr.c @@ -7,7 +7,7 @@ cube_t transform(cube_t, uint8_t); uint64_t coordinate_dr_coord(cube_t, const unsigned char *); cube_t coordinate_dr_cube(uint64_t, const unsigned char *); -uint64_t coordinate_dr_gendata(unsigned char *); +size_t coordinate_dr_gendata(unsigned char *); void run(void) { bool found; diff --git a/test/122_coorddata_dreo/coorddata_dreo.c b/test/122_coorddata_dreo/coorddata_dreo.c index 942e837..2b99b7f 100644 --- a/test/122_coorddata_dreo/coorddata_dreo.c +++ b/test/122_coorddata_dreo/coorddata_dreo.c @@ -7,7 +7,7 @@ cube_t transform(cube_t, uint8_t); uint64_t coordinate_dreo_coord(cube_t, const unsigned char *); cube_t coordinate_dreo_cube(uint64_t, const unsigned char *); -uint64_t coordinate_dreo_gendata(unsigned char *); +size_t coordinate_dreo_gendata(unsigned char *); void run(void) { bool found; -- cgit v1.3