From: Sean Cannella Date: Tue, 9 Dec 2014 00:25:48 +0000 (-0800) Subject: TransportInfo size mismatches X-Git-Tag: v0.22.0~120 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e43f826e136bf52883e28e3dbdaa0f9dbe227c92;p=folly.git TransportInfo size mismatches Summary: The code that uses TransportInfo assumes these byte counts are compatible with size_t so make them so. Test Plan: compiled Reviewed By: davejwatson@fb.com Subscribers: fugalh, bmatheny, njormrod, folly-diffs@, benyluo, ranjeeth, fma, kmdent FB internal diff: D1725026 Tasks: 5538843 Signature: t1:1725026:1418061933:b4072ca926e792716776ddc00d79db9376510859 --- diff --git a/folly/experimental/wangle/acceptor/TransportInfo.h b/folly/experimental/wangle/acceptor/TransportInfo.h index 069adb7e..e108c466 100644 --- a/folly/experimental/wangle/acceptor/TransportInfo.h +++ b/folly/experimental/wangle/acceptor/TransportInfo.h @@ -27,13 +27,13 @@ struct HTTPHeaderSize { * before decompression. If header compression is not supported, the value * is set to 0. */ - uint32_t compressed{0}; + size_t compressed{0}; /** * The number of bytes used to represent the serialized header before * compression or after decompression, in plain-text format. */ - uint32_t uncompressed{0}; + size_t uncompressed{0}; }; struct TransportInfo {