Skip to content

Commit d9c034e

Browse files
slusarzsmalyshev
authored andcommitted
trailing ws
1 parent b5b0a53 commit d9c034e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/standard/filters.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ static void php_conv_qprint_encode_dtor(php_conv_qprint_encode *inst)
771771
}
772772

773773
#define NEXT_CHAR(ps, icnt, lb_ptr, lb_cnt, lbchars) \
774-
((lb_ptr) < (lb_cnt) ? (lbchars)[(lb_ptr)] : *(ps))
774+
((lb_ptr) < (lb_cnt) ? (lbchars)[(lb_ptr)] : *(ps))
775775

776776
#define CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt) \
777777
if ((lb_ptr) < (lb_cnt)) { \
@@ -841,7 +841,7 @@ static php_conv_err_t php_conv_qprint_encode_convert(php_conv_qprint_encode *ins
841841

842842
if (lb_ptr >= lb_cnt && icnt <= 0) {
843843
break;
844-
}
844+
}
845845

846846
c = NEXT_CHAR(ps, icnt, lb_ptr, lb_cnt, inst->lbchars);
847847

@@ -903,7 +903,7 @@ static php_conv_err_t php_conv_qprint_encode_convert(php_conv_qprint_encode *ins
903903
CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt);
904904
}
905905
}
906-
} else if ((!(opts & PHP_CONV_QPRINT_OPT_FORCE_ENCODE_FIRST) || line_ccnt < inst->line_len) && ((c >= 33 && c <= 60) || (c >= 62 && c <= 126))) {
906+
} else if ((!(opts & PHP_CONV_QPRINT_OPT_FORCE_ENCODE_FIRST) || line_ccnt < inst->line_len) && ((c >= 33 && c <= 60) || (c >= 62 && c <= 126))) {
907907
if (line_ccnt < 2 && inst->lbchars != NULL) {
908908
if (ocnt < inst->lbchars_len + 1) {
909909
err = PHP_CONV_ERR_TOO_BIG;
@@ -947,7 +947,7 @@ static php_conv_err_t php_conv_qprint_encode_convert(php_conv_qprint_encode *ins
947947
}
948948
*(pd++) = '=';
949949
*(pd++) = qp_digits[(c >> 4)];
950-
*(pd++) = qp_digits[(c & 0x0f)];
950+
*(pd++) = qp_digits[(c & 0x0f)];
951951
ocnt -= 3;
952952
line_ccnt -= 3;
953953
trail_ws--;
@@ -958,7 +958,7 @@ static php_conv_err_t php_conv_qprint_encode_convert(php_conv_qprint_encode *ins
958958
*in_pp = (const char *)ps;
959959
*in_left_p = icnt;
960960
*out_pp = (char *)pd;
961-
*out_left_p = ocnt;
961+
*out_left_p = ocnt;
962962
inst->line_ccnt = line_ccnt;
963963
inst->lb_ptr = lb_ptr;
964964
inst->lb_cnt = lb_cnt;

0 commit comments

Comments
 (0)