Skip to content
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

ext/enchant: Remove useless char* casts #18141

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Mar 25, 2025

No description provided.

@@ -346,12 +346,12 @@ PHP_FUNCTION(enchant_broker_set_dict_path)

switch (dict_type) {
case PHP_ENCHANT_MYSPELL:
enchant_broker_set_param(pbroker->pbroker, "enchant.myspell.dictionary.path", (const char *)value);
enchant_broker_set_param(pbroker->pbroker, "enchant.myspell.dictionary.path", value);
Copy link
Member

Choose a reason for hiding this comment

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

all good, just this call expects a const char * but the compiler should not complain in this case.

@Girgias Girgias merged commit e184536 into php:master Mar 25, 2025
9 checks passed
@Girgias Girgias deleted the enchant-useless-char-cast branch March 25, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants