mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user