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 | 298d1e2ddaec6fd2d534352a7da391eef615bcea (patch) | |
tree | 769c0b1007ca976ec66e03576e4abf78dcda287f /re.c | |
parent | 9f8bebf781b08decea8a9f625b41aab92e238c79 (diff) | |
download | ruby-298d1e2ddaec6fd2d534352a7da391eef615bcea.tar.gz ruby-298d1e2ddaec6fd2d534352a7da391eef615bcea.tar.xz ruby-298d1e2ddaec6fd2d534352a7da391eef615bcea.zip |
* re.c (KR_REHASH): wrong hash value on sizeof(long) > sizeof(int).
git-svn-id: http://svn.ruby-lang.org/repos/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; |