From fe3b676fa2e5c57db75eeeb07b506e4ed6e4f433 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 2 Oct 2001 09:36:23 +0000 Subject: * eval.c (rb_eval): should override existing class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regex.c') diff --git a/regex.c b/regex.c index 1be2c2f890..340e96e46e 100644 --- a/regex.c +++ b/regex.c @@ -3415,7 +3415,7 @@ re_search(bufp, string, size, startpos, range, regs) \ *stackp++ = pattern_place; \ *stackp++ = string_place; \ - *stackp++ = (unsigned char*)options; /* current option status */ \ + *stackp++ = (unsigned char*)(long)options; /* current option status */ \ *stackp++ = (unsigned char*)0; /* non-greedy flag */ \ } while(0) @@ -4296,7 +4296,7 @@ re_match(bufp, string_arg, size, pos, regs) goto fail; } stackp--; /* discard greedy flag */ - options = (int)*--stackp; + options = (long)*--stackp; d = *--stackp; p = *--stackp; /* Restore register info. */ -- cgit v1.2.3