aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/sam/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/sam/regexp.c')
-rw-r--r--src/cmd/sam/regexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/sam/regexp.c b/src/cmd/sam/regexp.c
index 3477baef..3234d731 100644
--- a/src/cmd/sam/regexp.c
+++ b/src/cmd/sam/regexp.c
@@ -494,7 +494,7 @@ bldcclass(void)
exprp++; /* eat '-' */
if((c2 = nextrec()) == ']')
goto Error;
- classp[n+0] = 0xFFFF;
+ classp[n+0] = Runemax;
classp[n+1] = c1;
classp[n+2] = c2;
n += 3;
@@ -516,7 +516,7 @@ classmatch(int classno, int c, int negate)
p = class[classno];
while(*p){
- if(*p == 0xFFFF){
+ if(*p == Runemax){
if(p[1]<=c && c<=p[2])
return !negate;
p += 3;