Fixed implicit conversion warning: __LINE__ is a long (#4397)

This commit is contained in:
Cœur
2022-12-19 00:23:44 +08:00
committed by GitHub
parent e694c3e3a0
commit 4ff59b715d
7 changed files with 10 additions and 10 deletions

View File

@@ -63,7 +63,7 @@ char const* ccrypto_error_to_str(CCCryptorStatus error_code)
return "Unknown error";
}
void log_ccrypto_error(CCCryptorStatus error_code, char const* file, int line)
void log_ccrypto_error(CCCryptorStatus error_code, char const* file, long line)
{
if (tr_logLevelIsActive(TR_LOG_ERROR))
{
@@ -79,7 +79,7 @@ void log_ccrypto_error(CCCryptorStatus error_code, char const* file, int line)
}
}
bool check_ccrypto_result(CCCryptorStatus result, char const* file, int line)
bool check_ccrypto_result(CCCryptorStatus result, char const* file, long line)
{
bool const ret = result == kCCSuccess;