Commit 8fbef19a authored by 小马哥's avatar 小马哥 Committed by GitHub

Merge pull request #2 from leekangwoo/patch-1

Remove a type conversion error when compiling on Android
parents a8877581 0fc154f0
Pipeline #352 failed with stages
......@@ -251,10 +251,10 @@ static uint8_t * xxtea_ubyte_decrypt(const uint8_t * data, size_t len, const uin
void * xxtea_encrypt(const void * data, size_t len, const void * key, size_t * out_len) {
FIXED_KEY
return xxtea_ubyte_encrypt(data, len, fixed_key, out_len);
return xxtea_ubyte_encrypt((const uint8_t *)data, len, fixed_key, out_len);
}
void * xxtea_decrypt(const void * data, size_t len, const void * key, size_t * out_len) {
FIXED_KEY
return xxtea_ubyte_decrypt(data, len, fixed_key, out_len);
return xxtea_ubyte_decrypt((const uint8_t *)data, len, fixed_key, out_len);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment