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/core_memusage.h | |
parent | 5af6572534986bf85f6806e2cc66c1f1f8e3c56c (diff) |
Avoid dereference-of-casted-pointer
Diffstat (limited to 'src/core_memusage.h')
-rw-r--r-- | src/core_memusage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core_memusage.h b/src/core_memusage.h index e4ccd54c42..f038e7b154 100644 --- a/src/core_memusage.h +++ b/src/core_memusage.h @@ -10,7 +10,7 @@ #include "memusage.h" static inline size_t RecursiveDynamicUsage(const CScript& script) { - return memusage::DynamicUsage(*static_cast<const CScriptBase*>(&script)); + return memusage::DynamicUsage(script); } static inline size_t RecursiveDynamicUsage(const COutPoint& out) { |