summaryrefslogtreecommitdiff
path: root/external/hunspell/ubsan.patch.0
blob: 8749cd91e64581274ceb74c9825d2e90fe3786ac (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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) {