From 51ca0f5e6640877c04df09e2a8436923278e487c Mon Sep 17 00:00:00 2001 From: Mikhail Pilin Date: Thu, 28 Oct 2021 14:55:00 +0200 Subject: [PATCH] Fix for `cor.h(1951,8): error C2665: 'CorSigUncompressData': none of the 3 overloads could convert all the argument types` on VS2019 with warning level 4. --- src/coreclr/inc/cor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/inc/cor.h b/src/coreclr/inc/cor.h index ee82e433695ebe..8ccc151cc0378e 100644 --- a/src/coreclr/inc/cor.h +++ b/src/coreclr/inc/cor.h @@ -1942,7 +1942,7 @@ inline ULONG CorSigUncompressData( // return number of bytes of that compre ULONG dwSizeOfData = 0; // We don't know how big the signature is, so we'll just say that it's big enough - if (FAILED(CorSigUncompressData(pData, 0xff, pDataOut, &dwSizeOfData))) + if (FAILED(CorSigUncompressData(pData, 0xff, reinterpret_cast(pDataOut), reinterpret_cast(&dwSizeOfData)))) { *pDataOut = 0; return (ULONG)-1;