-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix Alpine build break #101302
fix Alpine build break #101302
Conversation
Apline defines NULL as std::nullptr which is not comparable/assignable with intptr_t Fixes dotnet/source-build#4345
Tagging subscribers to this area: @tommcdon |
@@ -48,7 +48,7 @@ CDAC::CDAC(HMODULE module, uint64_t descriptorAddr, ICorDebugDataTarget* target) | |||
{ | |||
if (m_module == NULL) | |||
{ | |||
m_cdac_handle = NULL; | |||
m_cdac_handle = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like the approach in #100796 was to cast NULL to INT_PTR instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a style preference. in this case m_cdac_handle isn't a pointer (it happens to be a NativeAOT GCHandle), so (INT_PTR)NULL
isn't really apropriate, either.
Apline defines NULL as std::nullptr which is not comparable/assignable with intptr_t Fixes dotnet/source-build#4345
Apline defines NULL as std::nullptr which is not comparable/assignable with intptr_t
Fixes dotnet/source-build#4345