@@ -51,7 +51,7 @@ _parse_supported_query_types(bson_iter_t *iter, supported_query_type_flags *out,
51
51
BSON_ASSERT_PARAM (iter );
52
52
BSON_ASSERT_PARAM (out );
53
53
if (!BSON_ITER_HOLDS_DOCUMENT (iter )) {
54
- CLIENT_ERR ("When parsing supported query types: Expected type document, got: %d" , bson_iter_type (iter ));
54
+ CLIENT_ERR ("When parsing supported query types: Expected type document, got: %d" , ( int ) bson_iter_type (iter ));
55
55
return false;
56
56
}
57
57
@@ -66,7 +66,7 @@ _parse_supported_query_types(bson_iter_t *iter, supported_query_type_flags *out,
66
66
}
67
67
if (!BSON_ITER_HOLDS_UTF8 (& query_type_iter )) {
68
68
CLIENT_ERR ("When parsing supported query types: Expected 'queryType' to be type UTF-8, got: %d" ,
69
- bson_iter_type (& query_type_iter ));
69
+ ( int ) bson_iter_type (& query_type_iter ));
70
70
return false;
71
71
}
72
72
const char * queryType = bson_iter_utf8 (& query_type_iter , NULL /* length */ );
@@ -91,7 +91,7 @@ _parse_field(mc_EncryptedFieldConfig_t *efc, bson_t *field, mongocrypt_status_t
91
91
return false;
92
92
}
93
93
if (!BSON_ITER_HOLDS_BINARY (& field_iter )) {
94
- CLIENT_ERR ("expected 'fields.keyId' to be type binary, got: %d" , bson_iter_type (& field_iter ));
94
+ CLIENT_ERR ("expected 'fields.keyId' to be type binary, got: %d" , ( int ) bson_iter_type (& field_iter ));
95
95
return false;
96
96
}
97
97
_mongocrypt_buffer_t field_keyid ;
@@ -106,7 +106,7 @@ _parse_field(mc_EncryptedFieldConfig_t *efc, bson_t *field, mongocrypt_status_t
106
106
return false;
107
107
}
108
108
if (!BSON_ITER_HOLDS_UTF8 (& field_iter )) {
109
- CLIENT_ERR ("expected 'fields.path' to be type UTF-8, got: %d" , bson_iter_type (& field_iter ));
109
+ CLIENT_ERR ("expected 'fields.path' to be type UTF-8, got: %d" , ( int ) bson_iter_type (& field_iter ));
110
110
return false;
111
111
}
112
112
field_path = bson_iter_utf8 (& field_iter , NULL /* length */ );
0 commit comments