Skip to content

Commit 1f0864d

Browse files
cast for g++ build warning
1 parent 019ea52 commit 1f0864d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/internal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static void HandshakeInfoFree(HandshakeInfo* hs, void* heap)
465465
WFREE(hs->generator, heap, DYNTYPE_MPINT);
466466
#endif
467467
if (hs->hashId != WC_HASH_TYPE_NONE)
468-
wc_HashFree(&hs->hash, hs->hashId);
468+
wc_HashFree(&hs->hash, (enum wc_HashType)hs->hashId);
469469
ForceZero(hs, sizeof(HandshakeInfo));
470470
WFREE(hs, heap, DYNTYPE_HS);
471471
}

0 commit comments

Comments
 (0)