diff options
author | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-28 19:59:11 +0000 |
---|---|---|
committer | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-28 19:59:11 +0000 |
commit | 8a861408063765c2b9ab9a76e413c3b1f050552a (patch) | |
tree | 104c4c1cc240bfc4774eaf2aea529f8cc4ce393c /base/pickle.h | |
parent | 9d44b21e1c59e8483fdb9edcd5d8745e08fe6e7e (diff) | |
download | chromium_src-8a861408063765c2b9ab9a76e413c3b1f050552a.zip chromium_src-8a861408063765c2b9ab9a76e413c3b1f050552a.tar.gz chromium_src-8a861408063765c2b9ab9a76e413c3b1f050552a.tar.bz2 |
Change size() function to return a size_t so that result size is not inadvertently truncated.
BUG=None
TEST=Ran existing unit tests and trybots.
Review URL: http://codereview.chromium.org/6386008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/pickle.h')
-rw-r--r-- | base/pickle.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/pickle.h b/base/pickle.h index 498ce95..ad08b7c 100644 --- a/base/pickle.h +++ b/base/pickle.h @@ -55,8 +55,7 @@ class Pickle { Pickle& operator=(const Pickle& other); // Returns the size of the Pickle's data. - int size() const { return static_cast<int>(header_size_ + - header_->payload_size); } + size_t size() const { return header_size_ + header_->payload_size; } // Returns the data for this Pickle. const void* data() const { return header_; } |