Skip to content

Commit db1bde7

Browse files
committed
Use equals OR equal instead of >= && <=
For only two values this is clearer
1 parent a5e938d commit db1bde7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5331,7 +5331,7 @@ PHP_FUNCTION(count_chars)
53315331
}
53325332
}
53335333

5334-
if (mymode >= 3 && mymode <= 4) {
5334+
if (mymode == 3 || mymode == 4) {
53355335
RETURN_STRINGL(retstr, retlen);
53365336
}
53375337
}

0 commit comments

Comments
 (0)