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 authored and Ruy Adorno committed 2022-08-22 19:37:09 -04:00
1 parent 5dc39a10bd
commit 460397709b
1 file changed
+1 -1
+1 -1
View File
@@ -216,7 +216,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) {