efi_loader: Change ptr arithmetics tcg eventlog buffer
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Mon, 29 Mar 2021 21:42:36 +0000 (00:42 +0300)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 10 Apr 2021 10:00:24 +0000 (12:00 +0200)
commitf8cd72d1ac6aac8cfa48777b5c0681ee2f9e3671
tree01b8d3737e0456212d2516428e62b8c4f1bd2a21
parent216406367819b52f965ee89b1a3829863c49aac0
efi_loader: Change ptr arithmetics tcg eventlog buffer

Although ptr arithmetics are allowed with extensions in gcc, they
are not allowed by the C spec. So switch to (void *)(uintptr_t) instead

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
lib/efi_loader/efi_tcg2.c