libftTester icon indicating copy to clipboard operation
libftTester copied to clipboard

Cast error warning while testing strlen

Open Pafik0000 opened this issue 1 year ago • 1 comments

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();

Pafik0000 avatar Dec 06 '24 12:12 Pafik0000

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

Tripouille avatar Dec 06 '24 18:12 Tripouille