Kaydet (Commit) 56dc9f64 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/hunspell: Work around -fsanitize=shift

Change-Id: Id93e61a1b9893ae026056a9d3e03c88b259f0ff8
üst 0042de4c
...@@ -19,6 +19,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,hunspell,\ ...@@ -19,6 +19,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,hunspell,\
external/hunspell/hunspell-1.3.2-literal.patch \ external/hunspell/hunspell-1.3.2-literal.patch \
external/hunspell/hunspell-fdo48017-wfopen.patch \ external/hunspell/hunspell-fdo48017-wfopen.patch \
external/hunspell/hunspell-morph-overflow.patch \ external/hunspell/hunspell-morph-overflow.patch \
external/hunspell/ubsan.patch.0 \
)) ))
ifeq ($(COM),MSC) ifeq ($(COM),MSC)
......
--- src/hunspell/hashmgr.cxx
+++ src/hunspell/hashmgr.cxx
@@ -479,7 +479,7 @@
int HashMgr::hash(const char * word) const
{
- long hv = 0;
+ unsigned long hv = 0;
for (int i=0; i < 4 && *word != 0; i++)
hv = (hv << 8) | (*word++);
while (*word != 0) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment