bytesex.h: make sure WRITE*() doesn't screw up on wrong pointer type
commitdf5548a40cd05e0f4e2de0c4e220f93be521107a
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 30 Nov 2017 01:07:58 +0000 (29 17:07 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 30 Nov 2017 01:07:58 +0000 (29 17:07 -0800)
tree6bbb5d324f1d48cc64ae6141f25e8f8ff5ee5542
parent7370483b00125d13422c7fdb8e267d02c73d52b4
bytesex.h: make sure WRITE*() doesn't screw up on wrong pointer type

Make the WRITE*() macros independent of pointer type.  As it was, we
would get totally wrong result on X86_MEMORY machines if the pointer
was not uint8_t *.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
include/bytesex.h