summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-05 09:54:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-05 09:54:28 +0000
commit5196e8609ba576021305710610b071d31777e798 (patch)
tree375c2e7a9bedbb9996f3839418093249c75240c8 /string.c
parentebfbdcf4dffb423363965f6b41e574c69794db5f (diff)
regex
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 5def049e357..5229236f3bf 100644
--- a/string.c
+++ b/string.c
@@ -1708,7 +1708,7 @@ trnext(t)
for (;;) {
if (!t->gen) {
if (t->p == t->pend) return -1;
- t->now = *t->p++;
+ t->now = *(USTR)t->p++;
if (t->p < t->pend && *t->p == '-') {
t->p++;
if (t->p < t->pend) {