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

[rtext] Fix TextReplace() warning for const #3687

Merged
merged 1 commit into from Dec 28, 2023
Merged

[rtext] Fix TextReplace() warning for const #3687

merged 1 commit into from Dec 28, 2023

Conversation

ghost
Copy link

@ghost ghost commented Dec 28, 2023

Changes

  1. Fixes the warning below (introduced after #3678):
rtext.c: In function ‘TextReplace’:
rtext.c:1537:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 1537 |     insertPoint = text;
      |                 ^
  1. Does that by adding a cast to insertPoint = (char*)text; (R1537).

Edits:

  • 1. added line marks.

@raysan5 raysan5 merged commit 5b5a2d0 into raysan5:master Dec 28, 2023
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Dec 28, 2023

@ubkp thanks for the review!

@ghost ghost deleted the fix/rtext-warning branch December 28, 2023 22:19
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.

1 participant