Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6736)

Unified Diff: chrome/common/indexed_db_key.cc

Issue 5727002: IndexedDB: Preparatory patch for https://bugs.webkit.org/show_bug.cgi?id=50674 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/indexed_db_key.cc
diff --git a/chrome/common/indexed_db_key.cc b/chrome/common/indexed_db_key.cc
index 9f7d1537e858af54dae53d9d43d6d347d7ce2f76..b4b0de4b8bc607edcd8b3d29f0d56031a274372c 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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698