Skip to content

-Wsign-conversion #18

@oschonrock

Description

@oschonrock
/home/oliver/c/qa/include/sha1/sha1.hpp:240:20: warning: implicit conversion changes
      signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                   | (buffer[4*i+0] & 0xff)<<24;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/oliver/c/qa/include/sha1/sha1.hpp:263:35: warning: implicit conversion changes
      signedness: 'unsigned long' to 'std::streamsize' (aka 'long') [-Wsign-conversion]
        is.read(sbuf, BLOCK_BYTES - buffer.size());
           ~~~~       ~~~~~~~~~~~~^~~~~~~~~~~~~~~

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