diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-13 16:03:15 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-13 16:03:15 +0000 |
commit | 829a44822d5e3fd4457f44c401d82eb14c52c8e9 (patch) | |
tree | 769c0b1007ca976ec66e03576e4abf78dcda287f /re.c | |
parent | be1de4f8db9626be0341d588b6b36aaae06a52d2 (diff) | |
download | ruby-829a44822d5e3fd4457f44c401d82eb14c52c8e9.tar.gz |
* re.c (KR_REHASH): wrong hash value on sizeof(long) > sizeof(int).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -105,7 +105,7 @@ rb_memsearch(x0, m, y0, n) int d; unsigned long hx, hy; -#define KR_REHASH(a, b, h) (((h) << 1) - ((a)<<d) + (b)) +#define KR_REHASH(a, b, h) (((h) << 1) - ((long)(a)<<d) + (b)) if (m > n) return -1; s = y; e = s + n - m; |