aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-03-20 12:50:18 +0100
committerHans Nilsson <[email protected]>2019-03-21 14:46:31 +0100
commita51d1c32304ea97e24d81f27a246bcf1fe8df521 (patch)
treed7a87abc54cb6b6436175413de22aa19b4d666ef /lib
parent64b00c83b01df1882224741a71f4ad706ef82d56 (diff)
downloadotp-a51d1c32304ea97e24d81f27a246bcf1fe8df521.tar.gz
otp-a51d1c32304ea97e24d81f27a246bcf1fe8df521.tar.bz2
otp-a51d1c32304ea97e24d81f27a246bcf1fe8df521.zip
crypto: Fixup 'break strict-aliasing rules' warning
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/c_src/hmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/c_src/hmac.c b/lib/crypto/c_src/hmac.c
index c41e50eb35..ff7005d75e 100644
--- a/lib/crypto/c_src/hmac.c
+++ b/lib/crypto/c_src/hmac.c
@@ -181,7 +181,7 @@ ERL_NIF_TERM hmac_update_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]
ASSERT(argc == 2);
- if (!enif_get_resource(env, argv[0], hmac_context_rtype, (void**)&obj))
+ if (!enif_get_resource(env, argv[0], (ErlNifResourceType*)hmac_context_rtype, (void**)&obj))
goto bad_arg;
if (!enif_inspect_iolist_as_binary(env, argv[1], &data))
goto bad_arg;
@@ -224,7 +224,7 @@ ERL_NIF_TERM hmac_final_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
ASSERT(argc == 1 || argc == 2);
- if (!enif_get_resource(env, argv[0], hmac_context_rtype, (void**)&obj))
+ if (!enif_get_resource(env, argv[0], (ErlNifResourceType*)hmac_context_rtype, (void**)&obj))
goto bad_arg;
if (argc == 2) {
if (!enif_get_uint(env, argv[1], &req_len))