Skip to content

Commit ca42d33

Browse files
committed
Refactor function based on review comment
1 parent 3d09104 commit ca42d33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/lib-rt/librt_base64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ b64encode(PyObject *self, PyObject *const *args, size_t nargs) {
7070

7171
static inline int
7272
is_valid_base64_char(char c, bool allow_padding) {
73-
return ((c >= 'A' && c <= 'Z') | (c >= 'a' && c <= 'z') |
74-
(c >= '0' && c <= '9') | (c == '+') | (c == '/') | (allow_padding && c == '='));
73+
return ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') ||
74+
(c >= '0' && c <= '9') || (c == '+') || (c == '/') || (allow_padding && c == '='));
7575
}
7676

7777
static PyObject *

0 commit comments

Comments
 (0)