From: Pauli Date: Wed, 25 Oct 2023 07:30:39 +0000 (+1100) Subject: sslapitest: add cast to avoid compiler error X-Git-Tag: openssl-3.2.0-beta1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74efc5477c8a78ca80187a1332e5b89ce5ed6c16;p=thirdparty%2Fopenssl.git 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) --- diff --git a/test/sslapitest.c b/test/sslapitest.c index 2fbe76f9798..94eab9981d2 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(),