[openssl] master update
Richard Levitte
levitte at openssl.org
Sun Mar 17 08:13:39 UTC 2019
The branch master has been updated
via f7f2a55aeee12926a7080d75d38f03467eb1ac44 (commit)
from 16161a30f2d432dc851a67d0ba24c0fa738e0767 (commit)
- Log -----------------------------------------------------------------
commit f7f2a55aeee12926a7080d75d38f03467eb1ac44
Author: Richard Levitte <levitte at openssl.org>
Date: Sat Mar 16 10:43:48 2019 +0100
test/params_api_test.c: fix size_t assumptions
size_t isn't always as large as a int64_t, so the compiler complains
about possible data loss. In this case, we are in control, so a
simple cast will do.
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/8497)
-----------------------------------------------------------------------
Summary of changes:
test/params_api_test.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/params_api_test.c b/test/params_api_test.c
index 77b8af4..97c8a9d 100644
--- a/test/params_api_test.c
+++ b/test/params_api_test.c
@@ -103,12 +103,12 @@ static int test_param_type_extra(const OSSL_PARAM *param, unsigned char *cmp,
if (signd) {
if (!TEST_true(OSSL_PARAM_set_int32(param, 12345))
|| !TEST_true(OSSL_PARAM_get_int64(param, &i64))
- || !TEST_size_t_eq(i64, 12345))
+ || !TEST_size_t_eq((size_t)i64, 12345))
return 0;
} else {
if (!TEST_true(OSSL_PARAM_set_uint32(param, 12345))
|| !TEST_true(OSSL_PARAM_get_uint64(param, (uint64_t *)&i64))
- || !TEST_size_t_eq(i64, 12345))
+ || !TEST_size_t_eq((size_t)i64, 12345))
return 0;
}
}
More information about the openssl-commits
mailing list