diff options
author | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-10 10:02:03 +0000 |
---|---|---|
committer | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-10 10:02:03 +0000 |
commit | dbf8837d1acfba2599f1787e93e8e13a58aa0913 (patch) | |
tree | 9c1723a3ac6f55d65a438300119893d0f4fab176 /chrome | |
parent | e4dabe9993a51a1c59b5423c71c6de8d77f84eca (diff) | |
download | chromium_src-dbf8837d1acfba2599f1787e93e8e13a58aa0913.zip chromium_src-dbf8837d1acfba2599f1787e93e8e13a58aa0913.tar.gz chromium_src-dbf8837d1acfba2599f1787e93e8e13a58aa0913.tar.bz2 |
IndexedDB: Preparatory patch for https://bugs.webkit.org/show_bug.cgi?id=50674
WebIDBKey::number() will be changed to return a double.
Cast this to int explicitly to avoid warnings in the mean time (esp. on Visual
Studio).
BUG=65619
TEST=none
Review URL: http://codereview.chromium.org/5727002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68835 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/indexed_db_key.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/common/indexed_db_key.cc b/chrome/common/indexed_db_key.cc index 9f7d153..b4b0de4 100644 --- a/chrome/common/indexed_db_key.cc +++ b/chrome/common/indexed_db_key.cc @@ -43,7 +43,8 @@ void IndexedDBKey::Set(const WebIDBKey& key) { type_ = key.type(); string_ = key.type() == WebIDBKey::StringType ? static_cast<string16>(key.string()) : string16(); - number_ = key.type() == WebIDBKey::NumberType ? key.number() : 0; + number_ = key.type() == WebIDBKey::NumberType ? + static_cast<int32_t>(key.number()) : 0; } IndexedDBKey::operator WebIDBKey() const { |