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/100_gendata_cocsep | |
| parent | 954a9f9100e8f30e0303a3815c4104526aceb4a0 (diff) | |
| download | nissy-core-3429b552bc4367136f015c182f723ee977bb55a3.tar.gz nissy-core-3429b552bc4367136f015c182f723ee977bb55a3.zip | |
Solved alignment UB issue
Diffstat (limited to 'test/100_gendata_cocsep')
| -rw-r--r-- | test/100_gendata_cocsep/gendata_cocsep_tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/100_gendata_cocsep/gendata_cocsep_tests.c b/test/100_gendata_cocsep/gendata_cocsep_tests.c index 7630a71..62f52fb 100644 --- a/test/100_gendata_cocsep/gendata_cocsep_tests.c +++ b/test/100_gendata_cocsep/gendata_cocsep_tests.c | |||
| @@ -6,19 +6,19 @@ | |||
| 6 | #define COCSEP_CLASSES 3393 | 6 | #define COCSEP_CLASSES 3393 |
| 7 | 7 | ||
| 8 | typedef struct { | 8 | typedef struct { |
| 9 | char solver[INFO_SOLVER_STRLEN]; | 9 | uint64_t distribution[INFO_DISTRIBUTION_LEN]; |
| 10 | uint64_t type; | 10 | uint64_t type; |
| 11 | uint64_t infosize; | 11 | uint64_t infosize; |
| 12 | uint64_t fullsize; | 12 | uint64_t fullsize; |
| 13 | uint64_t hash; | 13 | uint64_t hash; |
| 14 | uint64_t entries; | 14 | uint64_t entries; |
| 15 | uint64_t classes; /* Used only by cocsepdata, for now */ | 15 | uint64_t classes; /* Used only by cocsepdata, for now */ |
| 16 | uint64_t next; | ||
| 17 | char solver[INFO_SOLVER_STRLEN]; | ||
| 16 | uint8_t h48h; | 18 | uint8_t h48h; |
| 17 | uint8_t bits; | 19 | uint8_t bits; |
| 18 | uint8_t base; | 20 | uint8_t base; |
| 19 | uint8_t maxvalue; | 21 | uint8_t maxvalue; |
| 20 | uint64_t next; | ||
| 21 | uint64_t distribution[INFO_DISTRIBUTION_LEN]; | ||
| 22 | } tableinfo_t; | 22 | } tableinfo_t; |
| 23 | 23 | ||
| 24 | size_t gendata_cocsep(void *, uint64_t *, cube_t *); | 24 | size_t gendata_cocsep(void *, uint64_t *, cube_t *); |
