const unsigned char*
to char*
.
const unsigned char*
to char*
.
1302@@ -1303,12 +1303,12 @@ class CTransactionSignatureSerializer
1303 it = itBegin;
1304 while (scriptCode.GetOp(it, opcode)) {
1305 if (opcode == OP_CODESEPARATOR) {
1306- s.write((char*)&itBegin[0], it-itBegin-1);
1307+ s.write(reinterpret_cast<const char*>(&itBegin[0]), it-itBegin-1);
There is a safe helper CharCast
and UCharCast
, that can be used.
Though, I have a patch (Bundle 2/2 of #21969) to remove char
completely.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.