Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@ukoloff
Copy link

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
Copy link
Owner

jbeder commented Dec 6, 2016

Feel free to submit a PR.

jbeder pushed a commit that referenced this issue Dec 13, 2016
@tambry
Copy link
Contributor

tambry commented Dec 14, 2016

Should be fixed now, can probably be closed.

@jbeder jbeder closed this as completed Dec 14, 2016
@ukoloff
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants