Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit conversion loses integer precision: 'unsigned long' to 'int32_t' #811

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions mz_crypt_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

/***************************************************************************/
Expand Down
Loading