From d9aaf23f0d52b5cc1a6d1364313d086dfe2dc087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Tue, 26 Jul 2022 18:04:14 +0000 Subject: [PATCH] src: remove unnecessary cast in crypto_sig.cc ByteSource::Allocated accepts a void pointer now, so we do not need to cast the argument to a char pointer. Refs: https://github.com/nodejs/node/pull/43202 --- src/crypto/crypto_sig.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/crypto_sig.cc b/src/crypto/crypto_sig.cc index a72649ab8ec16f..9bebaafb371303 100644 --- a/src/crypto/crypto_sig.cc +++ b/src/crypto/crypto_sig.cc @@ -215,7 +215,7 @@ ByteSource ConvertSignatureToDER( CHECK_NOT_NULL(data); - return ByteSource::Allocated(reinterpret_cast(data), len); + return ByteSource::Allocated(data, len); } void CheckThrow(Environment* env, SignBase::Error error) {