aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/attribute.h2
-rw-r--r--include/quant_info.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/include/attribute.h b/include/attribute.h
index ff354cb..93f7bc4 100644
--- a/include/attribute.h
+++ b/include/attribute.h
@@ -116,7 +116,7 @@ public:
public: \
Tosa##NAME##Attribute(const TosaAttributeBase* options) \
{ \
- const Tosa##NAME##Attribute* p = reinterpret_cast<const Tosa##NAME##Attribute*>(options); \
+ const Tosa##NAME##Attribute* p = static_cast<const Tosa##NAME##Attribute*>(options); \
*this = *p; \
} \
Tosa##NAME##Attribute(const Tosa##NAME##Attribute* p) \
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) \
{ \