mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Fix the unaligned store with post increment test: The misaligned pointer
stopped pointing to the value the moment we wrote it due to the post increment. So, grab the value for comparison out of the data structure directly.
This commit is contained in:
parent
286fceb541
commit
0335d35b09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140918
@ -178,7 +178,7 @@ main()
|
||||
return (1);
|
||||
# endif
|
||||
|
||||
memcpy(aligned, misaligned, sizeof(DATA_TYPE));
|
||||
memcpy(aligned, data.misaligned, sizeof(DATA_TYPE));
|
||||
#endif
|
||||
|
||||
if (*aligned != value)
|
||||
|
Loading…
Reference in New Issue
Block a user