From 41264b09229ea587e8a514b4cec613ec8933bc16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 27 Jul 2022 12:11:41 +0200 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 PR-URL: https://github.com/nodejs/node/pull/44001 Reviewed-By: Filip Skokan Reviewed-By: Darshan Sen Reviewed-By: Feng Yu --- 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) {