aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/api_ng.c
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-03-12 10:50:48 +0100
committerHans Nilsson <[email protected]>2019-03-19 12:45:54 +0100
commitc417b9d8b1959b0c18030d08efe5a9abdc86dc10 (patch)
tree0dd0fb6a1ce8323153b656b09d49eeef804f0184 /lib/crypto/c_src/api_ng.c
parent26754483d39dab9ab09f69fcecb89ab1fb5135bd (diff)
downloadotp-c417b9d8b1959b0c18030d08efe5a9abdc86dc10.tar.gz
otp-c417b9d8b1959b0c18030d08efe5a9abdc86dc10.tar.bz2
otp-c417b9d8b1959b0c18030d08efe5a9abdc86dc10.zip
crypto: Fix syntax error in ASSERT
Diffstat (limited to 'lib/crypto/c_src/api_ng.c')
-rw-r--r--lib/crypto/c_src/api_ng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/c_src/api_ng.c b/lib/crypto/c_src/api_ng.c
index c3f5ee0bea..50c0e9fcf6 100644
--- a/lib/crypto/c_src/api_ng.c
+++ b/lib/crypto/c_src/api_ng.c
@@ -235,7 +235,7 @@ static int get_update_args(ErlNifEnv* env,
goto err;
}
- ASSERT(in_data_bin.size =< INT_MAX);
+ ASSERT(in_data_bin.size <= INT_MAX);
#if !defined(HAVE_EVP_AES_CTR)
// enif_fprintf(stdout, "%s:%u state = %T\r\n", __FILE__, __LINE__, ctx_res->state);
@@ -340,7 +340,7 @@ ERL_NIF_TERM ng_crypto_update_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM a
{/* (Context, Data) */
ErlNifBinary data_bin;
- ASSERT(argc =< 3);
+ ASSERT(argc <= 3);
if (!enif_inspect_binary(env, argv[1], &data_bin))
return ERROR_Str(env, "expected binary as data");