diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-09 18:36:24 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-09 18:36:24 +0200 |
| commit | 5bb2b50a3f92c727ddf468df16bbc60a173d3115 (patch) | |
| tree | e974ee69df1687b6b4d658dfe474937975718cfa | |
| parent | 8e931537ff13137f49de58b84898a13ed3cdeeef (diff) | |
| download | nissy-core-5bb2b50a3f92c727ddf468df16bbc60a173d3115.tar.gz nissy-core-5bb2b50a3f92c727ddf468df16bbc60a173d3115.zip | |
Other minor fixes
| -rw-r--r-- | src/solvers/tables.h | 4 | ||||
| -rw-r--r-- | 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( | |||
| 39 | 39 | ||
| 40 | if (buf_size < INFOSIZE) { | 40 | if (buf_size < INFOSIZE) { |
| 41 | LOG("Error reading table: buffer size is too small " | 41 | LOG("Error reading table: buffer size is too small " |
| 42 | "(given size %" PRIu64 " is smaller than INFOSIZE = %" | 42 | "(given size %zu is smaller than INFOSIZE = %" |
| 43 | PRId64 ")\n", buf_size, INFOSIZE); | 43 | PRId64 ")\n", buf_size, INFOSIZE); |
| 44 | return NISSY_ERROR_BUFFER_SIZE; | 44 | return NISSY_ERROR_BUFFER_SIZE; |
| 45 | } | 45 | } |
| @@ -97,7 +97,7 @@ writetableinfo( | |||
| 97 | 97 | ||
| 98 | if (data_size < info->fullsize) { | 98 | if (data_size < info->fullsize) { |
| 99 | LOG("Error writing table: buffer size is too small " | 99 | LOG("Error writing table: buffer size is too small " |
| 100 | "(given %" PRId64 " but table requires %" PRId64 ")\n", | 100 | "(given %zu but table requires %" PRId64 ")\n", |
| 101 | data_size, info->fullsize); | 101 | data_size, info->fullsize); |
| 102 | return NISSY_ERROR_BUFFER_SIZE; | 102 | return NISSY_ERROR_BUFFER_SIZE; |
| 103 | } | 103 | } |
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. | |||
| 10 | #include "../src/solvers/tables.h" | 10 | #include "../src/solvers/tables.h" |
| 11 | 11 | ||
| 12 | size_t gendata_h48_derive(uint8_t, const unsigned char *, unsigned char *); | 12 | size_t gendata_h48_derive(uint8_t, const unsigned char *, unsigned char *); |
| 13 | int parse_h48_solver(const char *, uint8_t [static 1], uint8_t [static 1]); | 13 | long long parse_h48_solver(const char *, uint8_t [static 1], uint8_t [static 1]); |
| 14 | long long int nissy_datainfo(uint64_t, const unsigned char *); | 14 | long long int nissy_datainfo(uint64_t, const unsigned char *); |
