diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-02 09:36:23 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-02 09:36:23 +0000 |
commit | fe3b676fa2e5c57db75eeeb07b506e4ed6e4f433 (patch) | |
tree | 1336e2e5a286c833ce0c7d01efef9dd81aafb40b /regex.c | |
parent | 3ab5d775b737f681225864200c893b68b7b8f546 (diff) |
* 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
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |