Skip to content

Integer truncation warnings on 64-bit MSVC #78

@nyanpasu64

Description

@nyanpasu64

This issue is on both verdigris master and 1.2.

In https://github.com/woboq/verdigris/blob/master/src/wobjectimpl.h, there are three occurrences of *stringLengthP++ = s.size();. On 64-bit MSVC, the first two occurrences have the following warning:

C:\Users\nyanpasu\code\exotracker\3rdparty\verdigris\wobjectimpl.h:616: warning: C4244: '=': conversion from 'QIntegerForSize<8>::Signed' to 'int', possible loss of data

Do you think it's worth inserting an explicit cast?

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