Skip to content

Cast error warning while testing strlen #51

@Pafik0000

Description

@Pafik0000

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions