Address fallout from -Wsign-conversion work on Windows#2241
Address fallout from -Wsign-conversion work on Windows#2241gennadiycivil merged 1 commit intogoogle:masterfrom
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 <yaneurabeya@gmail.com>
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 yaneurabeya@gmail.com