Skip to content

Conversation

@lambdageek
Copy link
Member

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
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

@lambdageek lambdageek added the source-build Issues relating to dotnet/source-build label Apr 19, 2024
if (m_module == NULL)
{
m_cdac_handle = NULL;
m_cdac_handle = 0;
Copy link
Member

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

Copy link
Member Author

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.

matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
Apline defines NULL as std::nullptr which is not comparable/assignable
with intptr_t

Fixes dotnet/source-build#4345
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Diagnostics-coreclr source-build Issues relating to dotnet/source-build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

All Alpine319 legs are failed to build CoreCLR component

3 participants