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> 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 * regparse.c, test/ruby/test_regexp.rb: fixed problem with UTF-8

View file

@ -2561,9 +2561,9 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
if (p == prev) { /* can't read nothing. */ if (p == prev) { /* can't read nothing. */
num = 0; /* but, it's not error */ num = 0; /* but, it's not error */
} }
tok->type = TK_CODE_POINT; tok->type = TK_CODE_POINT;
tok->base = 16; tok->base = 16;
tok->u.c = num; tok->u.code = (OnigCodePoint )num;
} }
break; break;
@ -2588,8 +2588,8 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
num = fetch_escaped_value(&p, end, env); num = fetch_escaped_value(&p, end, env);
if (num < 0) return num; if (num < 0) return num;
if (tok->u.c != num) { if (tok->u.c != num) {
tok->u.c = num; tok->u.code = (OnigCodePoint )num;
tok->type = TK_CODE_POINT; tok->type = TK_CODE_POINT;
} }
break; break;
} }
@ -2892,9 +2892,9 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
if (p == prev) { /* can't read nothing. */ if (p == prev) { /* can't read nothing. */
num = 0; /* but, it's not error */ num = 0; /* but, it's not error */
} }
tok->type = TK_CODE_POINT; tok->type = TK_CODE_POINT;
tok->base = 16; tok->base = 16;
tok->u.c = num; tok->u.code = (OnigCodePoint )num;
} }
break; break;
@ -3042,8 +3042,8 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
if (num < 0) return num; if (num < 0) return num;
/* set_raw: */ /* set_raw: */
if (tok->u.c != num) { if (tok->u.c != num) {
tok->type = TK_CODE_POINT; tok->type = TK_CODE_POINT;
tok->u.c = num; tok->u.code = (OnigCodePoint )num;
} }
else { /* string */ else { /* string */
p = tok->backp + enc_len(enc, tok->backp); p = tok->backp + enc_len(enc, tok->backp);