1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* regparse.c (fetch_token): fixed test failure on HP-UX ia64 ([ruby-dev:24859]).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ksaito 2004-11-28 03:16:16 +00:00
parent 09542e3269
commit aa01c73689
2 changed files with 15 additions and 10 deletions

View file

@ -1,3 +1,8 @@
Sun Nov 28 12:14:47 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
* regparse.c (fetch_token): fixed test failure on HP-UX ia64
([ruby-dev:24859]).
Sun Nov 28 12:08:15 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
* regparse.c, test/ruby/test_regexp.rb: fixed problem with UTF-8

View file

@ -2563,7 +2563,7 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
}
tok->type = TK_CODE_POINT;
tok->base = 16;
tok->u.c = num;
tok->u.code = (OnigCodePoint )num;
}
break;
@ -2588,7 +2588,7 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
num = fetch_escaped_value(&p, end, env);
if (num < 0) return num;
if (tok->u.c != num) {
tok->u.c = num;
tok->u.code = (OnigCodePoint )num;
tok->type = TK_CODE_POINT;
}
break;
@ -2894,7 +2894,7 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
}
tok->type = TK_CODE_POINT;
tok->base = 16;
tok->u.c = num;
tok->u.code = (OnigCodePoint )num;
}
break;
@ -3043,7 +3043,7 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
/* set_raw: */
if (tok->u.c != num) {
tok->type = TK_CODE_POINT;
tok->u.c = num;
tok->u.code = (OnigCodePoint )num;
}
else { /* string */
p = tok->backp + enc_len(enc, tok->backp);