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 <panva.ip@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
This commit is contained in:
Tobias Nießen
2022-07-27 12:11:41 +02:00
committed by GitHub
parent 93e0bf9abf
commit abddacb2ef

View File

@@ -215,7 +215,7 @@ ByteSource ConvertSignatureToDER(
CHECK_NOT_NULL(data);
return ByteSource::Allocated(reinterpret_cast<char*>(data), len);
return ByteSource::Allocated(data, len);
}
void CheckThrow(Environment* env, SignBase::Error error) {