| Index: content/browser/indexed_db/indexed_db_leveldb_coding.cc
|
| diff --git a/content/browser/indexed_db/indexed_db_leveldb_coding.cc b/content/browser/indexed_db/indexed_db_leveldb_coding.cc
|
| index f4d01dec591a6107113f547bc12b80b71d3ccd83..ccf792cacc73409e7ea7accd4b8f9c2bcb1f4438 100644
|
| --- a/content/browser/indexed_db/indexed_db_leveldb_coding.cc
|
| +++ b/content/browser/indexed_db/indexed_db_leveldb_coding.cc
|
| @@ -1251,11 +1251,11 @@ std::string KeyPrefix::EncodeInternal(int64 database_id,
|
| DCHECK(object_store_id_string.size() <= kMaxObjectStoreIdSizeBytes);
|
| DCHECK(index_id_string.size() <= kMaxIndexIdSizeBytes);
|
|
|
| - unsigned char first_byte =
|
| + unsigned char first_byte = static_cast<char>(
|
| (database_id_string.size() - 1) << (kMaxObjectStoreIdSizeBits +
|
| kMaxIndexIdSizeBits) |
|
| (object_store_id_string.size() - 1) << kMaxIndexIdSizeBits |
|
| - (index_id_string.size() - 1);
|
| + (index_id_string.size() - 1));
|
| static_assert(kMaxDatabaseIdSizeBits + kMaxObjectStoreIdSizeBits +
|
| kMaxIndexIdSizeBits ==
|
| sizeof(first_byte) * 8,
|
|
|