diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-28 17:47:49 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-28 17:47:49 +0200 |
| commit | 3429b552bc4367136f015c182f723ee977bb55a3 (patch) | |
| tree | 06e3aa276bccdbc5fa57f4679438d95a7808f1e1 /test/090_tables_readwrite/tables_readwrite_tests.c | |
| parent | 954a9f9100e8f30e0303a3815c4104526aceb4a0 (diff) | |
| download | nissy-core-3429b552bc4367136f015c182f723ee977bb55a3.tar.gz nissy-core-3429b552bc4367136f015c182f723ee977bb55a3.zip | |
Solved alignment UB issue
Diffstat (limited to 'test/090_tables_readwrite/tables_readwrite_tests.c')
| -rw-r--r-- | test/090_tables_readwrite/tables_readwrite_tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/090_tables_readwrite/tables_readwrite_tests.c b/test/090_tables_readwrite/tables_readwrite_tests.c index e1c2015..73c4e21 100644 --- a/test/090_tables_readwrite/tables_readwrite_tests.c +++ b/test/090_tables_readwrite/tables_readwrite_tests.c | |||
| @@ -5,19 +5,19 @@ | |||
| 5 | #define INFO_DISTRIBUTION_LEN 21 | 5 | #define INFO_DISTRIBUTION_LEN 21 |
| 6 | 6 | ||
| 7 | typedef struct { | 7 | typedef struct { |
| 8 | char solver[INFO_SOLVER_STRLEN]; | 8 | uint64_t distribution[INFO_DISTRIBUTION_LEN]; |
| 9 | uint64_t type; | 9 | uint64_t type; |
| 10 | uint64_t infosize; | 10 | uint64_t infosize; |
| 11 | uint64_t fullsize; | 11 | uint64_t fullsize; |
| 12 | uint64_t hash; | 12 | uint64_t hash; |
| 13 | uint64_t entries; | 13 | uint64_t entries; |
| 14 | uint64_t classes; | 14 | uint64_t classes; |
| 15 | uint64_t next; | ||
| 16 | char solver[INFO_SOLVER_STRLEN]; | ||
| 15 | uint8_t h48h; | 17 | uint8_t h48h; |
| 16 | uint8_t bits; | 18 | uint8_t bits; |
| 17 | uint8_t base; | 19 | uint8_t base; |
| 18 | uint8_t maxvalue; | 20 | uint8_t maxvalue; |
| 19 | uint64_t next; | ||
| 20 | uint64_t distribution[INFO_DISTRIBUTION_LEN]; | ||
| 21 | } tableinfo_t; | 21 | } tableinfo_t; |
| 22 | 22 | ||
| 23 | bool readtableinfo(const void *, tableinfo_t *); | 23 | bool readtableinfo(const void *, tableinfo_t *); |
