Skip to content

Conversation

@danmar
Copy link
Owner

@danmar danmar commented Nov 16, 2025

No description provided.

@sonarqubecloud
Copy link

}
if (call->pointer > 0) {
if ((call->constness | func->constness) != func->constness)
const unsigned int mask = (1U << call->pointer) - 1;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the idea is to mask off the constness of the pointer itself.. the constness for what it points at should be kept.
const int * => const int *
const int * const => const int *
const int * * const => const int * *
int * const * const => int * const *

@danmar danmar merged commit e21be4e into danmar:main Nov 17, 2025
55 checks passed
@danmar danmar deleted the fix-14272 branch November 20, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants