diff --git a/library/oid.c b/library/oid.c index 91f6da6e5..3b5b31a5e 100644 --- a/library/oid.c +++ b/library/oid.c @@ -950,7 +950,7 @@ int mbedtls_oid_from_numeric_string(mbedtls_asn1_buf *oid, const char *str_ptr = oid_str; const char *str_bound = oid_str + size; - int val = 0; + unsigned int val = 0; size_t encoded_len; unsigned int component1, component2;