int32 => int32_t
This commit is contained in:
parent
d2944c62a5
commit
4503aafe64
11 changed files with 33 additions and 33 deletions
|
@ -90,12 +90,12 @@ bool GetNodeFromPath(std::string path,
|
|||
}
|
||||
|
||||
bool FillFileInfoWithNode(Archive::FileInfo* info,
|
||||
uint32 header_size,
|
||||
uint32_t header_size,
|
||||
const base::DictionaryValue* node) {
|
||||
int size;
|
||||
if (!node->GetInteger("size", &size))
|
||||
return false;
|
||||
info->size = static_cast<uint32>(size);
|
||||
info->size = static_cast<uint32_t>(size);
|
||||
|
||||
if (node->GetBoolean("unpacked", &info->unpacked) && info->unpacked)
|
||||
return true;
|
||||
|
@ -157,8 +157,8 @@ bool Archive::Init() {
|
|||
return false;
|
||||
}
|
||||
|
||||
uint32 size;
|
||||
if (!base::PickleIterator(base::Pickle(buf.data(), buf.size())).ReadUInt32(
|
||||
uint32_t size;
|
||||
if (!base::PickleIterator(base::Pickle(buf.data(), buf.size())).ReadUint32_t(
|
||||
&size)) {
|
||||
LOG(ERROR) << "Failed to parse header size from " << path_.value();
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue