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

Unified Diff: third_party/hunspell/google/bdict_writer.cc

Issue 1547213002: Switch to standard integer types in third_party/hunspell/google/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/hunspell/google/bdict_reader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hunspell/google/bdict_writer.cc
diff --git a/third_party/hunspell/google/bdict_writer.cc b/third_party/hunspell/google/bdict_writer.cc
index 300ec5e2ad1f76623ba545af95a529c90d715832..c413a4fedd891d6526c7671c63946ca99b76c241 100644
--- a/third_party/hunspell/google/bdict_writer.cc
+++ b/third_party/hunspell/google/bdict_writer.cc
@@ -4,6 +4,9 @@
#include "third_party/hunspell/google/bdict_writer.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "third_party/hunspell/google/bdict.h"
@@ -445,8 +448,8 @@ std::string BDictWriter::GetBDict() const {
header->signature = hunspell::BDict::SIGNATURE;
header->major_version = hunspell::BDict::MAJOR_VERSION;
header->minor_version = hunspell::BDict::MINOR_VERSION;
- header->aff_offset = static_cast<uint32>(aff_offset);
- header->dic_offset = static_cast<uint32>(dic_offset);
+ header->aff_offset = static_cast<uint32_t>(aff_offset);
+ header->dic_offset = static_cast<uint32_t>(dic_offset);
// Write the MD5 digest of the affix information and the dictionary words at
// the end of the BDic header.
@@ -485,10 +488,10 @@ void BDictWriter::SerializeAff(std::string* output) const {
// Add the header now that we know the offsets.
hunspell::BDict::AffHeader* header =
reinterpret_cast<hunspell::BDict::AffHeader*>(&(*output)[header_offset]);
- header->affix_group_offset = static_cast<uint32>(affix_group_offset);
- header->affix_rule_offset = static_cast<uint32>(affix_rule_offset);
- header->rep_offset = static_cast<uint32>(rep_offset);
- header->other_offset = static_cast<uint32>(other_offset);
+ header->affix_group_offset = static_cast<uint32_t>(affix_group_offset);
+ header->affix_rule_offset = static_cast<uint32_t>(affix_rule_offset);
+ header->rep_offset = static_cast<uint32_t>(rep_offset);
+ header->other_offset = static_cast<uint32_t>(other_offset);
}
} // namespace hunspell
« no previous file with comments | « third_party/hunspell/google/bdict_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698