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

Code isn't 64-bit clean in Microsoft compilers #1

Closed
philipcraig opened this issue Jul 26, 2014 · 0 comments
Closed

Code isn't 64-bit clean in Microsoft compilers #1

philipcraig opened this issue Jul 26, 2014 · 0 comments

Comments

@philipcraig
Copy link

For example, on Visual Studio 2013 Update 2, we see the following (correct) warnings from cl.exe after adding a 64-bit configuration:

PulsecountEngine.cpp
....\src\engine\PulsecountEngine.cpp(233): warning C4267: 'initializing' : conversion from 'size_t' to 'const react::impl::uint', possible loss of data
SubtreeEngine.cpp
....\src\engine\SubtreeEngine.cpp(181): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data

This is because ints are 4 bytes on cl.exe 64 -bit code, but size_t is 8 bytes.

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

1 participant