diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-07-26 10:20:07 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-07-26 10:20:07 +0000 |
commit | 8d4af963a232f6c2cdbf510179c05af4140d3264 (patch) | |
tree | 919ffa0fb8d422560c77a04760bb2001729e9070 /Build/source/texk/kpathsea/hash.c | |
parent | b682bb00112f1062d00240543c0a0038413d148a (diff) |
kpathsea: More changes to reduce diffs with W32TeX
git-svn-id: svn://tug.org/texlive/trunk@23230 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/hash.c')
-rw-r--r-- | Build/source/texk/kpathsea/hash.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/hash.c b/Build/source/texk/kpathsea/hash.c index 49fa50b3797..8232eae5ac4 100644 --- a/Build/source/texk/kpathsea/hash.c +++ b/Build/source/texk/kpathsea/hash.c @@ -35,7 +35,13 @@ hash (hash_table_type table, const_string key) /* Our keys aren't often anagrams of each other, so no point in weighting the characters. */ while (*key != 0) - n = (n + n + *key++) % table.size; +#if defined(WIN32) + if (IS_KANJI(key)) { + n = (n + n + (unsigned)(*key++)) % table.size; + n = (n + n + (unsigned)(*key++)) % table.size; + } else +#endif + n = (n + n + TRANSFORM (*key++)) % table.size; return n; } |