summaryrefslogtreecommitdiffstats
path: root/chrome/common/indexed_db_key.cc
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-10 14:28:12 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-10 14:28:12 +0000
commitf4c308a5397bced16aca71fe449e0f23ae46e1cd (patch)
treed68ce1729a8b064a8b71877e3addfa3a59a99c4d /chrome/common/indexed_db_key.cc
parent56b9dc2e57bb721153ef8915fbebf8377a870ab1 (diff)
downloadchromium_src-f4c308a5397bced16aca71fe449e0f23ae46e1cd.zip
chromium_src-f4c308a5397bced16aca71fe449e0f23ae46e1cd.tar.gz
chromium_src-f4c308a5397bced16aca71fe449e0f23ae46e1cd.tar.bz2
IndexedDB: Numeric keys are floating point.
Depends on WebKit r73697. BUG=65619 TEST=browser_tests Review URL: http://codereview.chromium.org/5695002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/indexed_db_key.cc')
-rw-r--r--chrome/common/indexed_db_key.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/common/indexed_db_key.cc b/chrome/common/indexed_db_key.cc
index b4b0de4..4488673 100644
--- a/chrome/common/indexed_db_key.cc
+++ b/chrome/common/indexed_db_key.cc
@@ -34,7 +34,7 @@ void IndexedDBKey::Set(const string16& string) {
string_ = string;
}
-void IndexedDBKey::Set(int32_t number) {
+void IndexedDBKey::Set(double number) {
type_ = WebIDBKey::NumberType;
number_ = number;
}
@@ -43,8 +43,7 @@ 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 ?
- static_cast<int32_t>(key.number()) : 0;
+ number_ = key.type() == WebIDBKey::NumberType ? key.number() : 0;
}
IndexedDBKey::operator WebIDBKey() const {