Skip to content

Commit caf731f

Browse files
committed
fix mbstring.c -Wsingle-bit-bitfield-constant-conversion
This opts to fix it in the same way as GH-11729 did, by converting it to a boolean.
1 parent 8fb51d4 commit caf731f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/mbstring/mbstring.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4203,9 +4203,9 @@ PHP_FUNCTION(mb_send_mail)
42034203
char *to_r = NULL;
42044204
char *force_extra_parameters = INI_STR("mail.force_extra_parameters");
42054205
struct {
4206-
int cnt_type:1;
4207-
int cnt_trans_enc:1;
4208-
} suppressed_hdrs = { 0, 0 };
4206+
bool cnt_type:1;
4207+
bool cnt_trans_enc:1;
4208+
} suppressed_hdrs = { false, false };
42094209

42104210
char *p;
42114211
enum mbfl_no_encoding;
@@ -4288,7 +4288,7 @@ PHP_FUNCTION(mb_send_mail)
42884288
}
42894289
}
42904290
}
4291-
suppressed_hdrs.cnt_type = 1;
4291+
suppressed_hdrs.cnt_type = true;
42924292
}
42934293

42944294
if ((s = zend_hash_str_find(&ht_headers, "content-transfer-encoding", sizeof("content-transfer-encoding") - 1))) {
@@ -4308,7 +4308,7 @@ PHP_FUNCTION(mb_send_mail)
43084308
body_enc = &mbfl_encoding_8bit;
43094309
break;
43104310
}
4311-
suppressed_hdrs.cnt_trans_enc = 1;
4311+
suppressed_hdrs.cnt_trans_enc = true;
43124312
}
43134313

43144314
/* To: */

0 commit comments

Comments
 (0)