Fix Windows x64 build errors with type conversions
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
parent
39ba121d3a
commit
7f639fc7ab
2 changed files with 3 additions and 4 deletions
|
@ -296,7 +296,7 @@ int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *nam
|
|||
|
||||
if (!in_tag && ((*c == ',' && *(c-1) != '\\') || c == end)) {
|
||||
if (!numericoid) {
|
||||
if ((parse_ret = parse_attribute_value_string(s, c - s, data, &data_len)) != 0) {
|
||||
if ((parse_ret = parse_attribute_value_string(s, (int) (c - s), data, &data_len)) != 0) {
|
||||
return parse_ret;
|
||||
}
|
||||
tag = attr_descr->default_tag;
|
||||
|
@ -304,7 +304,7 @@ int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *nam
|
|||
if (numericoid) {
|
||||
#if defined(MBEDTLS_ASN1_PARSE_C)
|
||||
if ((parse_ret =
|
||||
parse_attribute_value_ber_encoded(s, c - s, data, &data_len, &tag)) != 0) {
|
||||
parse_attribute_value_ber_encoded(s, (int) (c - s), data, &data_len, &tag)) != 0) {
|
||||
return parse_ret;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue