mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-08 19:04:04 +08:00
Fix error on Windows builds (conversion from 'unsigned long' to 'uint8_t')
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
55ceff6d2f
commit
f86fe73d59
@ -117,7 +117,7 @@ struct options {
|
|||||||
static void ip_string_to_bytes(const char *str, uint8_t *bytes, int maxBytes)
|
static void ip_string_to_bytes(const char *str, uint8_t *bytes, int maxBytes)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < maxBytes; i++) {
|
for (int i = 0; i < maxBytes; i++) {
|
||||||
bytes[i] = strtoul(str, NULL, 16);
|
bytes[i] = (uint8_t) strtoul(str, NULL, 16);
|
||||||
str = strchr(str, '.');
|
str = strchr(str, '.');
|
||||||
if (str == NULL || *str == '\0') {
|
if (str == NULL || *str == '\0') {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user