Skip to content

Commit 907eff8

Browse files
authored
fix Alpine build break (#101302)
Apline defines NULL as std::nullptr which is not comparable/assignable with intptr_t Fixes dotnet/source-build#4345
1 parent 3725e24 commit 907eff8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/debug/daccess/cdac.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ CDAC::CDAC(HMODULE module, uint64_t descriptorAddr, ICorDebugDataTarget* target)
4848
{
4949
if (m_module == NULL)
5050
{
51-
m_cdac_handle = NULL;
51+
m_cdac_handle = 0;
5252
return;
5353
}
5454

@@ -62,7 +62,7 @@ CDAC::CDAC(HMODULE module, uint64_t descriptorAddr, ICorDebugDataTarget* target)
6262

6363
CDAC::~CDAC()
6464
{
65-
if (m_cdac_handle != NULL)
65+
if (m_cdac_handle)
6666
{
6767
decltype(&cdac_reader_free) free = reinterpret_cast<decltype(&cdac_reader_free)>(::GetProcAddress(m_module, "cdac_reader_free"));
6868
_ASSERTE(free != nullptr);

0 commit comments

Comments
 (0)