diff --git a/BUILD.gn b/BUILD.gn index 7547a4d1b..bc5bc85eb 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -133,6 +133,7 @@ config("extra_warnings") { if (is_win) { cflags += [ "/we4244", # Conversion: possible loss of data. + "/we4312", # Conversion: greater size. "/we4456", # Variable shadowing. "/we4458", # declaration hides class member. "/we4715", # not all control paths return a value diff --git a/src/libANGLE/FrameCapture.cpp b/src/libANGLE/FrameCapture.cpp index e7674fb1e..c87188fa8 100644 --- a/src/libANGLE/FrameCapture.cpp +++ b/src/libANGLE/FrameCapture.cpp @@ -2957,8 +2957,8 @@ void CaptureMidExecutionSetup(const gl::Context *context, const gl::SyncManager &syncs = apiState.getSyncManagerForCapture(); for (const auto &syncIter : syncs) { - GLsync syncID = reinterpret_cast(syncIter.first); - gl::Sync *sync = syncIter.second; + GLsync syncID = gl::bitCast(syncIter.first); + const gl::Sync *sync = syncIter.second; if (!sync) {