diff --git a/src/qf_port.cpp b/src/qf_port.cpp index 78e2ef6..aea2526 100644 --- a/src/qf_port.cpp +++ b/src/qf_port.cpp @@ -113,7 +113,7 @@ void QActive::start(QPrioSpec const prioSpec, /* task name provided by the user in QF_setTaskName() or default name */ char const *taskName = (m_thread != nullptr) - ? static_cast(m_thread) + ? reinterpret_cast(m_thread) : static_cast("AO"); /* statically create the FreeRTOS task for the AO */ @@ -138,7 +138,7 @@ void QActive::setAttr(std::uint32_t attr1, void const *attr2) { switch (attr1) { case TASK_NAME_ATTR: /* temporarily store the name */ - m_thread = const_cast(attr2); /* cast 'const' away */ + m_thread = reinterpret_cast(const_cast(attr2)); /* cast 'const' away */ break; /* ... */ }