diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-24 09:18:04 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-24 09:18:04 +0000 |
commit | d35979cdfe6192450503da23e6fc77218d09e829 (patch) | |
tree | d195db6e4d7a974ef6bde185a36db6fe37092dd9 /regex.c | |
parent | 69a7d012c406fd47c2416a87da33c7e6b7df81df (diff) | |
download | ruby-d35979cdfe6192450503da23e6fc77218d09e829.tar.gz |
* parse.y: tMINUS should have lower precedence than tPOW.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1447,8 +1447,7 @@ re_compile_pattern(pattern, size, bufp) int size; unsigned last = (unsigned)-1; - if ((size = EXTRACT_UNSIGNED(&b[(1 << BYTEWIDTH) / BYTEWIDTH])) - || current_mbctype) { + if ((size = EXTRACT_UNSIGNED(&b[(1 << BYTEWIDTH) / BYTEWIDTH])) || current_mbctype) { /* Ensure the space is enough to hold another interval of multi-byte chars in charset(_not)?. */ size = (1 << BYTEWIDTH) / BYTEWIDTH + 2 + size*8 + 8; @@ -1687,7 +1686,7 @@ re_compile_pattern(pattern, size, bufp) } else if (had_mbchar == 0 && (!current_mbctype || !had_num_literal)) { SET_LIST_BIT(c); - had_num_literal = 0; + had_num_literal = 0; } else set_list_bits(c, c, b); |