-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Address fallout from -Wsign-conversion work on Windows #2241
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
Address fallout from -Wsign-conversion work on Windows #2241
Conversation
c4fdb20 to
e60570c
Compare
Some Windows users builds were broken after a0d60be. This change addresses the lingering -Wsign-conversion issues with those platforms by adding some missing `static_cast` calls as needed. Signed-off-by: Enji Cooper <[email protected]>
e60570c to
bd47c09
Compare
|
CC: @elcabesa, @elv-peter, @gennadiycivil. This fixes Cygwin compilation for sure and the one other Windows issue reported, but it doesn't necessarily fix all Windows issues. I will need more help chasing any remaining platform issues down, e.g., directions for setting up Visual Studio, MingW, etc, to reproduce the issues seen in the environment. |
|
my setup is quite easy:
now you have a console and you can run make :) to run make you have to type mingw32-make. if you want to use cmake you have to install it. To create the makefiles from cmake on window you can use those instructions ( i created another batch): |
|
your code still has some problems: one more implicit conversion: |
|
you have to change gtest.cc:1694 to: |
PiperOrigin-RevId: 245430295
|
@ngie-eign This was the compile error I was getting (with the Emscripten toolchain as you can see): This fixes it: |
Some Windows users builds were broken after a0d60be. This change
addresses the lingering -Wsign-conversion issues with those platforms
by adding some missing
static_castcalls as needed.Signed-off-by: Enji Cooper [email protected]