From 5bb2b50a3f92c727ddf468df16bbc60a173d3115 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 9 May 2025 18:36:24 +0200 Subject: Other minor fixes --- src/solvers/tables.h | 4 ++-- tools/nissy_extra.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/solvers/tables.h b/src/solvers/tables.h index 9147972..53091f9 100644 --- a/src/solvers/tables.h +++ b/src/solvers/tables.h @@ -39,7 +39,7 @@ readtableinfo( if (buf_size < INFOSIZE) { LOG("Error reading table: buffer size is too small " - "(given size %" PRIu64 " is smaller than INFOSIZE = %" + "(given size %zu is smaller than INFOSIZE = %" PRId64 ")\n", buf_size, INFOSIZE); return NISSY_ERROR_BUFFER_SIZE; } @@ -97,7 +97,7 @@ writetableinfo( if (data_size < info->fullsize) { LOG("Error writing table: buffer size is too small " - "(given %" PRId64 " but table requires %" PRId64 ")\n", + "(given %zu but table requires %" PRId64 ")\n", data_size, info->fullsize); return NISSY_ERROR_BUFFER_SIZE; } diff --git a/tools/nissy_extra.h b/tools/nissy_extra.h index 63d171b..8b27c3e 100644 --- a/tools/nissy_extra.h +++ b/tools/nissy_extra.h @@ -10,5 +10,5 @@ for testing purposes only. #include "../src/solvers/tables.h" size_t gendata_h48_derive(uint8_t, const unsigned char *, unsigned char *); -int parse_h48_solver(const char *, uint8_t [static 1], uint8_t [static 1]); +long long parse_h48_solver(const char *, uint8_t [static 1], uint8_t [static 1]); long long int nissy_datainfo(uint64_t, const unsigned char *); -- cgit v1.3