Skip to content

dump_float: truncation from ptrdiff_t to long #527

Description

@ftillier

Building with VisualStudio 2017, using /W4 and /Wx, I get the following:
1>json.hpp(6946): warning C4244: '=': conversion from 'std::_Array_iterator<_Ty,64>::difference_type' to 'long', possible loss of data

On Windows, long is always 32-bits. Declaring 'len' as std::ptrdiff_t fixes the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions