| Index: net/http/http_version.h
|
| diff --git a/net/http/http_version.h b/net/http/http_version.h
|
| index 127e7115bf9966614963d3403b4e570a884a79c4..40111cc01e25f537a879545b9bc528b6826b4286 100644
|
| --- a/net/http/http_version.h
|
| +++ b/net/http/http_version.h
|
| @@ -16,17 +16,17 @@ class HttpVersion {
|
| HttpVersion() : value_(0) { }
|
|
|
| // Build from unsigned major/minor pair.
|
| - HttpVersion(uint16 major, uint16 minor) : value_(major << 16 | minor) { }
|
| + HttpVersion(uint32 major, uint32 minor) {
|
| + value_ = major;
|
| + value_ <<= 32;
|
| + value_ |= minor;
|
| + }
|
|
|
| // Major version number.
|
| - uint16 major_value() const {
|
| - return value_ >> 16;
|
| - }
|
| + uint32 major_value() const { return value_ >> 32; }
|
|
|
| // Minor version number.
|
| - uint16 minor_value() const {
|
| - return value_ & 0xffff;
|
| - }
|
| + uint32 minor_value() const { return value_ & 0xffffffff; }
|
|
|
| // Overloaded operators:
|
|
|
| @@ -50,7 +50,7 @@ class HttpVersion {
|
| }
|
|
|
| private:
|
| - uint32 value_; // Packed as <major>:<minor>
|
| + uint64 value_; // Packed as <major>:<minor>
|
| };
|
|
|
| } // namespace net
|
|
|