Skip to content

Conversation

@humz2k
Copy link
Contributor

@humz2k humz2k commented Feb 5, 2025

Unsure if I missed something, but was running into a error: cannot initialize a variable of type 'const char **' with an rvalue of type 'char **' when building with the latest raylib version using various versions of clang on a M1 Mac.

::TextSplit returns a char**, so you can't cast to a const char** implicitly. By specifying const char* const*, we allow implicit conversions from both char** and const char**. The strings are copied into the vector anyway, so adding the extra const specifier changes nothing.

::TextSplit returns a char** now, so you can't cast to a const char** implicitly. By specifying const char* const*, we allow implicit conversions from both char** and const char**. The strings are copied into the vector anyway, so adding the extra const specifier changes nothing.
@RobLoach RobLoach merged commit 7d41ebe into RobLoach:master Mar 1, 2025
8 checks passed
@RobLoach
Copy link
Owner

RobLoach commented Mar 1, 2025

Seems okay, thanks.

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