diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-16 19:23:07 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-16 19:23:07 +0000 |
commit | a8e8ab15da1db8d0342b4425b514ee293f371382 (patch) | |
tree | 304eadd79068fa60536e3b91df6137066b0ad637 /regexec.c | |
parent | f762923e02c8820cc3c1e6a19f86bae9cfd63bbb (diff) | |
download | perl-a8e8ab15da1db8d0342b4425b514ee293f371382.tar.gz |
Use UCHARAT() as suggested by Inaba Hiroto.
p4raw-id: //depot/perl@12039
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3282,12 +3282,13 @@ S_regmatch(pTHX_ regnode *prog) /* Find place 'next' could work */ if (!do_utf8) { if (c1 == c2) { - while (locinput <= e && (U8) *locinput != (U8) c1) + while (locinput <= e && + UCHARAT(locinput) != c1) locinput++; } else { while (locinput <= e - && (U8) *locinput != (U8) c1 - && (U8) *locinput != (U8) c2) + && UCHARAT(locinput) != c1 + && UCHARAT(locinput) != c2) locinput++; } count = locinput - old; |