-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If we have a map with key type [string[9], int64], then the int64 should be treated as an unaligned access. Previously the alignment calculations worked off the length of the string value, not the maximum size allocated for the string key. Example: @mapa["ccccdddd", 0] = 1; @mapa["aaaabbb", 0] = 1; The string key's size is taken from the maximum string length, which is 9 bytes. Fields after this key should be considered unaligned. The second line contains a string of 8 bytes. Padding was not taken into account and the following key(s) were incorrectly treated as aligned.
- Loading branch information
1 parent
c8b4cd2
commit af32e6b
Showing
3 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters