diff --git a/wolfcrypt/src/sp_int.c b/wolfcrypt/src/sp_int.c index e03d2ea39..93b8124f9 100644 --- a/wolfcrypt/src/sp_int.c +++ b/wolfcrypt/src/sp_int.c @@ -5102,7 +5102,7 @@ static void _sp_init_size(sp_int* a, unsigned int size) #endif _sp_zero((sp_int*)am); - a->size = (sp_size_t)size; + am->size = (sp_size_t)size; } /* Initialize the multi-precision number to be zero with a given max size. diff --git a/wolfssl/wolfcrypt/sp_int.h b/wolfssl/wolfcrypt/sp_int.h index f31aa9207..dda48b177 100644 --- a/wolfssl/wolfcrypt/sp_int.h +++ b/wolfssl/wolfcrypt/sp_int.h @@ -932,7 +932,7 @@ typedef struct sp_int_minimal { sp_size_t size; #ifdef WOLFSSL_SP_INT_NEGATIVE /** Indicates whether number is 0/positive or negative. */ - sp_uint8 sign; + sp_sign_t sign; #endif #ifdef HAVE_WOLF_BIGINT /** Unsigned binary (big endian) representation of number. */