aboutsummaryrefslogtreecommitdiff
path: root/include/quant_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/quant_info.h')
-rw-r--r--include/quant_info.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/quant_info.h b/include/quant_info.h
index d83063d..c7daeb2 100644
--- a/include/quant_info.h
+++ b/include/quant_info.h
@@ -107,9 +107,8 @@ public:
public: \
Tosa##NAME##QuantInfo(const TosaQuantInfoBase* qinfo) \
{ \
- const Tosa##NAME##QuantInfo* p = dynamic_cast<const Tosa##NAME##QuantInfo*>(qinfo); \
- assert(p); \
- *this = *p; \
+ const Tosa##NAME##QuantInfo* p = static_cast<const Tosa##NAME##QuantInfo*>(qinfo); \
+ *this = *p; \
} \
Tosa##NAME##QuantInfo(const Tosa##NAME##QuantInfo* p) \
{ \