From 74efc5477c8a78ca80187a1332e5b89ce5ed6c16 Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 25 Oct 2023 18:30:39 +1100 Subject: [PATCH] sslapitest: add cast to avoid compiler error Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/22500) --- test/sslapitest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sslapitest.c b/test/sslapitest.c index 2fbe76f979803..94eab9981d269 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -11156,7 +11156,7 @@ static int test_data_retry(void) goto end; for (i = 0; i < sizeof(inbuf); i++) - inbuf[i] = i; + inbuf[i] = (unsigned char)(0xff & i); memset(outbuf, 0, sizeof(outbuf)); if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),