Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: net/spdy/spdy_frame_builder.h

Issue 759063003: Fix "value possibly truncated" warnings on MSVC, net/spdy/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reintroduce using directive Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_frame_builder.h
diff --git a/net/spdy/spdy_frame_builder.h b/net/spdy/spdy_frame_builder.h
index 7aa6db4b650b7434af9f17a05d64d1af2b874ea2..bd709770c702a7e856f635b2f00c3d6aa2aa7d64 100644
--- a/net/spdy/spdy_frame_builder.h
+++ b/net/spdy/spdy_frame_builder.h
@@ -106,7 +106,7 @@ class NET_EXPORT_PRIVATE SpdyFrameBuilder {
}
bool WriteUInt64(uint64 value) {
uint32 upper = htonl(value >> 32);
- uint32 lower = htonl(value);
+ uint32 lower = htonl(static_cast<uint32>(value));
return (WriteBytes(&upper, sizeof(upper)) &&
WriteBytes(&lower, sizeof(lower)));
}

Powered by Google App Engine
This is Rietveld 408576698