clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast

This commit is contained in:
Daniel Agar
2019-10-28 10:50:31 -04:00
parent f5945d1185
commit 4192414576
16 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -492,7 +492,7 @@ void
DShotOutput::capture_trampoline(void *context, uint32_t chan_index,
hrt_abstime edge_time, uint32_t edge_state, uint32_t overflow)
{
DShotOutput *dev = reinterpret_cast<DShotOutput *>(context);
DShotOutput *dev = static_cast<DShotOutput *>(context);
dev->capture_callback(chan_index, edge_time, edge_state, overflow);
}