From 20c6f562d1f198f22f80823e178dd91927af1db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Thu, 31 Oct 2024 17:19:22 +0100 Subject: [PATCH] Implicit conversion loses integer precision: 'unsigned long' to 'int32_t' --- mz_crypt_openssl.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mz_crypt_openssl.c b/mz_crypt_openssl.c index 9d73dac9..1fda9d67 100644 --- a/mz_crypt_openssl.c +++ b/mz_crypt_openssl.c @@ -65,7 +65,7 @@ typedef struct mz_crypt_sha_s { EVP_MD_CTX *ctx; #endif int32_t initialized; - int32_t error; + unsigned long error; uint16_t algorithm; } mz_crypt_sha; @@ -269,8 +269,8 @@ void mz_crypt_sha_delete(void **handle) { /***************************************************************************/ typedef struct mz_crypt_aes_s { - int32_t mode; - int32_t error; + int32_t mode; + unsigned long error; EVP_CIPHER_CTX *ctx; } mz_crypt_aes; @@ -488,14 +488,14 @@ void mz_crypt_aes_delete(void **handle) { typedef struct mz_crypt_hmac_s { #if OPENSSL_VERSION_NUMBER < 0x30000000L - HMAC_CTX *ctx; + HMAC_CTX *ctx; #else - EVP_MAC *mac; - EVP_MAC_CTX *ctx; + EVP_MAC *mac; + EVP_MAC_CTX *ctx; #endif - int32_t initialized; - int32_t error; - uint16_t algorithm; + int32_t initialized; + unsigned long error; + uint16_t algorithm; } mz_crypt_hmac; /***************************************************************************/