compiler.h: need to cast a (void *) to (char *) before adding
commit38a96f0e069193cf9a2f4483f4120f3460aa9fa0
authorH. Peter Anvin <hpa@zytor.com>
Wed, 26 Dec 2018 14:49:18 +0000 (26 06:49 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 26 Dec 2018 14:49:18 +0000 (26 06:49 -0800)
tree29f3c49c3c099844390f7f169e4556534642b969
parenta162092532b2c1c6e3af688c60e9ce67273632e4
compiler.h: need to cast a (void *) to (char *) before adding

In the implementation of mempcpy():

Doing arithmetic on (void *) isn't permitted, so we need to cast it to
(char *); it then get automatically converted to void * by the return.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
include/compiler.h