FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: remove unnecessary cast in crypto_sig.cc · nodejs/node@2c44730 · GitHub

/ node Public

Commit 2c44730

Browse files
authored andcommitted
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: #43202 PR-URL: #44001 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Feng Yu <F3n67u@outlook.com>
1 parent cd8704d commit 2c44730

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/crypto/crypto_sig.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ ByteSource ConvertSignatureToDER(
215215

216216
CHECK_NOT_NULL(data);
217217

218-
return ByteSource::Allocated(reinterpret_cast<char*>(data), len);
218+
return ByteSource::Allocated(data, len);
219219
}
220220

221221
void CheckThrow(Environment* env, SignBase::Error error) {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL