diff options
author | Andy Polyakov <appro@openssl.org> | 2017-11-12 00:23:12 +0300 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2017-11-13 12:58:57 +0300 |
commit | 3a63c0edab842af3e84ef1cad2b4eb701eece3e1 (patch) | |
tree | c45bf7fb2f69874b2779b33e5597a59bbc92e648 /test/ssltest_old.c | |
parent | 802127e8fc07cbef499b645e7e1ae48ce3ed981c (diff) |
Resolve warnings in VC-WIN32 build, which allows to add /WX.
It's argued that /WX allows to keep better focus on new code, which
motivates its comeback...
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4721)
Diffstat (limited to 'test/ssltest_old.c')
-rw-r--r-- | test/ssltest_old.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ssltest_old.c b/test/ssltest_old.c index ebe052f55c..a4e596a109 100644 --- a/test/ssltest_old.c +++ b/test/ssltest_old.c @@ -281,7 +281,7 @@ static unsigned char *next_protos_parse(size_t *outlen, OPENSSL_free(out); return NULL; } - out[start] = i - start; + out[start] = (unsigned char)(i - start); start = i + 1; } else out[i + 1] = in[i]; |