summaryrefslogtreecommitdiff
path: root/regparse.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-08 04:40:39 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-08 04:40:39 +0000
commit30c77c8e9018532f47ef8f93316a6bc96985b72f (patch)
treee309e8ba2ccf22663f6b300ee6f0f16576108c86 /regparse.c
parent9b11fc8032b14fabacae74f77fbf02e1a3107eca (diff)
downloadruby-30c77c8e9018532f47ef8f93316a6bc96985b72f.tar.gz
* regparse.c (parse_exp): need to separate initialization for bcc32.
[ruby-dev:23169] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regparse.c b/regparse.c
index 2260df4155..ead0bce12b 100644
--- a/regparse.c
+++ b/regparse.c
@@ -4510,9 +4510,11 @@ parse_exp(Node** np, OnigToken* tok, int term,
case TK_QUOTE_OPEN:
{
- OnigCodePoint end_op[] = { (OnigCodePoint )MC_ESC, (OnigCodePoint )'E' };
+ OnigCodePoint end_op[2];
UChar *qstart, *qend, *nextp;
+ end_op[0] = (OnigCodePoint )MC_ESC;
+ end_op[1] = (OnigCodePoint )'E';
qstart = *src;
qend = find_str_position(end_op, 2, qstart, end, &nextp, env->enc);
if (IS_NULL(qend)) {