aboutsummaryrefslogtreecommitdiff
path: root/src/core_memusage.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-07-07 00:54:42 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-07-07 10:45:31 -0700
commit0aadc11fd88b298c7af2dfb69763b2c67dc6b7b0 (patch)
tree02bb833749f472a916c9ff5f585af9e94b5326b8 /src/core_memusage.h
parent5af6572534986bf85f6806e2cc66c1f1f8e3c56c (diff)
Avoid dereference-of-casted-pointer
Diffstat (limited to 'src/core_memusage.h')
-rw-r--r--src/core_memusage.h2
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) {