mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-11 15:37:27 +00:00
Fix misalignment of small structs in a Vector (C++) (#7883)
* Rare fix: kick fix test * Rare fix: real fix * Rare fix: separate test * Rare fix: remove comments * Rare fix: updates * Rare fix: less * Rare fix: size_t switch to uoffset_t * Rare fix: swap exp/val * Rare fix: add annotated before/after * Rare fix: remove unnecessary changes --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
16
tests/alignment_test.json
Normal file
16
tests/alignment_test.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"small_structs": [
|
||||
{
|
||||
"var_0": 2,
|
||||
"var_1": 1
|
||||
},
|
||||
{
|
||||
"var_0": 3,
|
||||
"var_1": 1
|
||||
},
|
||||
{
|
||||
"var_0": 4,
|
||||
"var_1": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user