projects
/
BearSSL
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4edfb8
)
Fixed a spurious warning on some compilers.
author
Thomas Pornin
<pornin@bolet.org>
Wed, 29 May 2019 11:42:20 +0000
(13:42 +0200)
committer
Thomas Pornin
<pornin@bolet.org>
Wed, 29 May 2019 11:42:20 +0000
(13:42 +0200)
inc/bearssl_ssl.h
patch
|
blob
|
history
diff --git
a/inc/bearssl_ssl.h
b/inc/bearssl_ssl.h
index
8c8c86b
..
f2ecc37
100644
(file)
--- a/
inc/bearssl_ssl.h
+++ b/
inc/bearssl_ssl.h
@@
-1250,8
+1250,8
@@
static inline void
br_ssl_engine_set_versions(br_ssl_engine_context *cc,
unsigned version_min, unsigned version_max)
{
- cc->version_min = version_min;
- cc->version_max = version_max;
+ cc->version_min =
(uint16_t)
version_min;
+ cc->version_max =
(uint16_t)
version_max;
}
/**
@@
-1324,7
+1324,7
@@
br_ssl_engine_set_protocol_names(br_ssl_engine_context *ctx,
const char **names, size_t num)
{
ctx->protocol_names = names;
- ctx->protocol_names_num = num;
+ ctx->protocol_names_num =
(uint16_t)
num;
}
/**