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

Unified Diff: third_party/hunspell/google/bdict.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.h ('k') | third_party/hunspell/google/bdict_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hunspell/google/bdict.cc
diff --git a/third_party/hunspell/google/bdict.cc b/third_party/hunspell/google/bdict.cc
index 3756f358760e59f28d8749395e384b10981b8847..17962575ab214b06b3d7e7202eafc052b45dc38b 100644
--- a/third_party/hunspell/google/bdict.cc
+++ b/third_party/hunspell/google/bdict.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <string.h>
+
#include "third_party/hunspell/google/bdict.h"
// static
@@ -24,7 +26,7 @@ bool hunspell::BDict::Verify(const char* bdict_data, size_t bdict_length) {
const hunspell::BDict::AffHeader* aff_header =
reinterpret_cast<const hunspell::BDict::AffHeader*>(
&bdict_data[header->aff_offset]);
- if (aff_header->affix_group_offset + sizeof(uint32) > bdict_length)
+ if (aff_header->affix_group_offset + sizeof(uint32_t) > bdict_length)
return false;
// The new BDICT header has a MD5 digest of the dictionary data. Compare the
« no previous file with comments | « third_party/hunspell/google/bdict.h ('k') | third_party/hunspell/google/bdict_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698