Fix implicit type conversion. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Bieneman 2016-05-21 00:36:47 +00:00
parent cfb570d66f
commit 957d8db773

View File

@ -137,7 +137,7 @@ static void CreateSigAltStack() {
return;
stack_t AltStack = {};
AltStack.ss_sp = malloc(AltStackSize);
AltStack.ss_sp = reinterpret_cast<char *>(malloc(AltStackSize));
AltStack.ss_size = AltStackSize;
if (sigaltstack(&AltStack, &OldAltStack) != 0)
free(AltStack.ss_sp);