From 55b363b7119797d46080d901ddf06d4e58c94546 Mon Sep 17 00:00:00 2001 From: Kevin Cheng Date: Sat, 6 Nov 2021 01:24:24 +0000 Subject: Avoid RTTI usage Signed-off-by: Kevin Cheng Change-Id: I89faef7fea11b19b6c59fda1b271e9b2af95b372 --- include/attribute.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/attribute.h') 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(options); \ + const Tosa##NAME##Attribute* p = static_cast(options); \ *this = *p; \ } \ Tosa##NAME##Attribute(const Tosa##NAME##Attribute* p) \ -- cgit v1.2.1