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

Cast error warning while testing strlen #51

Open
Pafik0000 opened this issue Dec 6, 2024 · 1 comment
Open

Cast error warning while testing strlen #51

Pafik0000 opened this issue Dec 6, 2024 · 1 comment

Comments

@Pafik0000
Copy link

image

Cast warning in tests/ft_strlen_test.cpp (lines 18 and 19)
Adding (char *) cast (as below) fixes the issue

18 |    /* 1 */ check(ft_strlen((char *)"123") == 3); showLeaks();
19 |    /* 2 */ check(ft_strlen((char *)"") == 0); showLeaks();
@Tripouille
Copy link
Owner

Hi, this doesn't seem like a massive issue, feel free to open a pull request if you're comfortable with this idea.

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

No branches or pull requests

2 participants