From 1e726e19a464d09d7d4064bee3f55a24cb2cc297 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 27 Apr 2020 06:48:41 -0700 Subject: [PATCH] Fix for XMALLOC cast. --- wolfcrypt/test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 17020f224..0f495862e 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -1322,7 +1322,7 @@ static int _SaveDerAndPem(const byte* der, int derSz, if (pemSz < 0) { return pemSz; } - pem = XMALLOC(pemSz, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER); + pem = (byte*)XMALLOC(pemSz, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER); if (pem == NULL) { return MEMORY_E; }