Skip to content

Commit

Permalink
fixup! treewide: make type casts explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Nov 16, 2022
1 parent de8c3df commit 9fd92d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit-tests/test_ccm.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ t_test_decrypt_message(void) {
buf, data[n].r_lm - data[n].la,
data[n].result, data[n].la);

CU_ASSERT(len == data[n].lm - data[n].la);
CU_ASSERT((size_t)len == data[n].lm - data[n].la);
CU_ASSERT(memcmp(buf, data[n].msg + data[n].la, len) == 0);
}
}

static void
t_test_dtls_encrypt_params(void) {
size_t n;
int len;
ssize_t len;

for (n = 0; n < sizeof(data)/sizeof(struct test_vector); ++n) {
dtls_ccm_params_t params =
Expand Down Expand Up @@ -125,7 +125,7 @@ t_test_dtls_decrypt_params(void) {
static void
t_test_dtls_encrypt(void) {
size_t n;
int len;
ssize_t len;

for (n = 0; n < sizeof(data)/sizeof(struct test_vector); ++n) {
/* The backwards-compatible dtls_encrypt() and dtls_decrypt()
Expand All @@ -148,7 +148,7 @@ t_test_dtls_encrypt(void) {
static void
t_test_dtls_decrypt(void) {
size_t n;
int len;
ssize_t len;

for (n = 0; n < sizeof(data)/sizeof(struct test_vector); ++n) {
/* The backwards-compatible dtls_encrypt() and dtls_decrypt()
Expand Down

0 comments on commit 9fd92d0

Please sign in to comment.