Skip to content

issue lvl: low; -Werror -Wsign-conversion = build error #107

@CharaVerKys

Description

@CharaVerKys

there just a little of them (today its total 7)
maybe just silence this errors with explicit cast?

samples:
get_indent_level() * style.indent_size, ' '); int->uint
std::vector<std::size_t> order_index(std::distance(b, e)); long->ulong
const parser & pa = **(b + i); ulong->long
...
like, to static_cast<unsigned int>(get_indent_level()) and std::vector<std::size_t> order_index( static_cast<std::size_t>(std::distance(b, e)) );
...
if ill change it in non-single file version, and pull request, will it be accepted, or no one care about signs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions