Skip to content

Commit 2893441

Browse files
committed
Fixed a spurious warning on some compilers.
1 parent e4edfb8 commit 2893441

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inc/bearssl_ssl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,8 +1250,8 @@ static inline void
12501250
br_ssl_engine_set_versions(br_ssl_engine_context *cc,
12511251
unsigned version_min, unsigned version_max)
12521252
{
1253-
cc->version_min = version_min;
1254-
cc->version_max = version_max;
1253+
cc->version_min = (uint16_t)version_min;
1254+
cc->version_max = (uint16_t)version_max;
12551255
}
12561256

12571257
/**
@@ -1324,7 +1324,7 @@ br_ssl_engine_set_protocol_names(br_ssl_engine_context *ctx,
13241324
const char **names, size_t num)
13251325
{
13261326
ctx->protocol_names = names;
1327-
ctx->protocol_names_num = num;
1327+
ctx->protocol_names_num = (uint16_t)num;
13281328
}
13291329

13301330
/**

0 commit comments

Comments
 (0)