Skip to content

svelte/scanner.c has code that depends on the signedness of char #194

Description

@DeanSturtevant1

In particular, at line 79:
tag->type = (TagType)(abs(buffer[i++]));
where buffer is of type const char*
This produces a clang warning: -Wabsolute-value with the message
"taking the absolute value of unsigned type 'const char' has no effect"

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