1
0
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:
Marcel Moolenaar 2005-01-27 22:46:15 +00:00
parent 286fceb541
commit 0335d35b09
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140918

View File

@ -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)