Index: net/spdy/spdy_frame_reader.cc |
diff --git a/net/spdy/spdy_frame_reader.cc b/net/spdy/spdy_frame_reader.cc |
index 183bae909cadcaefaf7485940d41eb22adef10cd..ce56cc6e3d62cba06d98d73462ec6cd1f5674207 100644 |
--- a/net/spdy/spdy_frame_reader.cc |
+++ b/net/spdy/spdy_frame_reader.cc |
@@ -23,7 +23,7 @@ bool SpdyFrameReader::ReadUInt16(uint16* result) { |
} |
// Read into result. |
- *result = ntohs(*(reinterpret_cast<const uint16*>(data_ + ofs_))); |
+ *result = base::NetToHost16(*(reinterpret_cast<const uint16*>(data_ + ofs_))); |
// Iterate. |
ofs_ += 2; |
@@ -39,7 +39,7 @@ bool SpdyFrameReader::ReadUInt32(uint32* result) { |
} |
// Read into result. |
- *result = ntohl(*(reinterpret_cast<const uint32*>(data_ + ofs_))); |
+ *result = base::NetToHost32(*(reinterpret_cast<const uint32*>(data_ + ofs_))); |
// Iterate. |
ofs_ += 4; |