x64 warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data #448

Closed
ukoloff opened this Issue Dec 6, 2016 · 3 comments

Projects

None yet

3 participants

@ukoloff
ukoloff commented Dec 6, 2016

When compiling with MSVC on x64 I get two warnings:

yaml-cpp\src\emitter.cpp(703): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
yaml-cpp\src\emitter.cpp(879): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data

On x86 no warnings.

May be some type cast should be applyed?

@jbeder
Owner
jbeder commented Dec 6, 2016

Feel free to submit a PR.

@tambry tambry added a commit to tambry/yaml-cpp that referenced this issue Dec 13, 2016
@tambry tambry Fix #448 f88a8a7
@tambry
Contributor
tambry commented Dec 14, 2016

Should be fixed now, can probably be closed.

@jbeder jbeder closed this Dec 14, 2016
@ukoloff
ukoloff commented Dec 14, 2016

Confirmed: warnings disappeared.

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