cleaner fix for bugprone-signed-char-misuse first addressed in 38c057a084.

This commit is contained in:
Daniel Pouzzner
2023-02-08 21:28:34 -06:00
parent 49a500c2af
commit ef0eda4091
2 changed files with 2 additions and 2 deletions

View File

@ -12659,7 +12659,7 @@ point_conversion_form_t wolfSSL_EC_KEY_get_conv_form(const WOLFSSL_EC_KEY* key)
int ret = -1; int ret = -1;
if (key != NULL) { if (key != NULL) {
ret = (int)(unsigned char)key->form; ret = key->form;
} }
return ret; return ret;

View File

@ -116,7 +116,7 @@ struct WOLFSSL_EC_KEY {
void* internal; /* our ECC Key */ void* internal; /* our ECC Key */
void* heap; void* heap;
char form; /* Either POINT_CONVERSION_UNCOMPRESSED or unsigned char form; /* Either POINT_CONVERSION_UNCOMPRESSED or
* POINT_CONVERSION_COMPRESSED */ * POINT_CONVERSION_COMPRESSED */
word16 pkcs8HeaderSz; word16 pkcs8HeaderSz;