diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2017-07-07 00:54:42 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2017-07-07 10:45:31 -0700 |
commit | 0aadc11fd88b298c7af2dfb69763b2c67dc6b7b0 (patch) | |
tree | 02bb833749f472a916c9ff5f585af9e94b5326b8 /src/primitives | |
parent | 5af6572534986bf85f6806e2cc66c1f1f8e3c56c (diff) |
Avoid dereference-of-casted-pointer
Diffstat (limited to 'src/primitives')
-rw-r--r-- | src/primitives/transaction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 00ac0b92b5..f1b5e59373 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -107,7 +107,7 @@ public: template <typename Stream, typename Operation> inline void SerializationOp(Stream& s, Operation ser_action) { READWRITE(prevout); - READWRITE(*(CScriptBase*)(&scriptSig)); + READWRITE(scriptSig); READWRITE(nSequence); } @@ -147,7 +147,7 @@ public: template <typename Stream, typename Operation> inline void SerializationOp(Stream& s, Operation ser_action) { READWRITE(nValue); - READWRITE(*(CScriptBase*)(&scriptPubKey)); + READWRITE(scriptPubKey); } void SetNull() |