diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-09-22 04:30:11 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-09-22 04:30:11 +0000 |
commit | 8aad024e3ac6524f8bc09d839a331f926eab30ec (patch) | |
tree | 826107ddf61a637dcb32d60f334bf56c27d72dc1 /regex.c | |
parent | 70a444b0cc703a2fd3e05045cd1e36266221149e (diff) |
19990922
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1112,7 +1112,7 @@ re_compile_pattern(pattern, size, bufp) register const char *p = pattern; const char *nextp; const char *pend = pattern + size; - register unsigned c, c1; + register unsigned int c, c1; const char *p0; int numlen; @@ -2832,7 +2832,7 @@ re_compile_fastmap(bufp) while (beg <= end) { /* NOTE: Charset for multi-byte chars might contain single-byte chars. We must reject them. */ - if (beg < 0x100) + if (c < 0x100) fastmap[beg] = 2; else if (ismbchar(beg)) fastmap[beg] = 1; |