Skip to content

Commit 6f65d67

Browse files
authored
Merge pull request #7321 from JacobBarthelmeh/vcpkg
fix for warning of no stdint.h include with uintptr_t
2 parents c8bc74b + 9f240bb commit 6f65d67

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ void wolfSSL_free(WOLFSSL* ssl)
15171517
WOLFSSL_ENTER("wolfSSL_free");
15181518

15191519
if (ssl) {
1520-
WOLFSSL_MSG_EX("Free SSL: %p", (uintptr_t)ssl);
1520+
WOLFSSL_MSG_EX("Free SSL: %p", (wc_ptr_t)ssl);
15211521
FreeSSL(ssl, ssl->ctx->heap);
15221522
}
15231523
else {

src/tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7480,7 +7480,7 @@ static int TLSX_KeyShare_GenEccKey(WOLFSSL *ssl, KeyShareEntry* kse)
74807480
kse->key = (byte*)XMALLOC(sizeof(ecc_key), ssl->heap, DYNAMIC_TYPE_ECC);
74817481
if (kse->key == NULL) {
74827482
WOLFSSL_MSG_EX("Failed to allocate %d bytes, ssl->heap: %p",
7483-
(int)sizeof(ecc_key), (uintptr_t)ssl->heap);
7483+
(int)sizeof(ecc_key), (wc_ptr_t)ssl->heap);
74847484
WOLFSSL_MSG("EccTempKey Memory error!");
74857485
return MEMORY_E;
74867486
}

0 commit comments

Comments
 (0)