From ef0eda4091adcd886b50b8f76cd346666f24f184 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 8 Feb 2023 21:28:34 -0600 Subject: [PATCH] cleaner fix for bugprone-signed-char-misuse first addressed in 38c057a084. --- src/pk.c | 2 +- wolfssl/openssl/ec.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pk.c b/src/pk.c index b4515783c..718e75adb 100644 --- a/src/pk.c +++ b/src/pk.c @@ -12659,7 +12659,7 @@ point_conversion_form_t wolfSSL_EC_KEY_get_conv_form(const WOLFSSL_EC_KEY* key) int ret = -1; if (key != NULL) { - ret = (int)(unsigned char)key->form; + ret = key->form; } return ret; diff --git a/wolfssl/openssl/ec.h b/wolfssl/openssl/ec.h index 3fb5270f5..065c63ceb 100644 --- a/wolfssl/openssl/ec.h +++ b/wolfssl/openssl/ec.h @@ -116,7 +116,7 @@ struct WOLFSSL_EC_KEY { void* internal; /* our ECC Key */ void* heap; - char form; /* Either POINT_CONVERSION_UNCOMPRESSED or + unsigned char form; /* Either POINT_CONVERSION_UNCOMPRESSED or * POINT_CONVERSION_COMPRESSED */ word16 pkcs8HeaderSz;