mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 02:43:33 +08:00
Don't lose array sizes in copyTo
This commit is contained in:
+2
-2
@@ -90,9 +90,9 @@ public:
|
||||
return (*this);
|
||||
}
|
||||
|
||||
void copyTo(Type (&dst)[M*N]) const
|
||||
void copyTo(Type dst [M*N]) const
|
||||
{
|
||||
memcpy(dst, _data, sizeof(dst));
|
||||
memcpy(dst, _data, sizeof(Type)*M*N);
|
||||
}
|
||||
|
||||
void copyToColumnMajor(Type (&dst)[M*N]) const
|
||||
|
||||
Reference in New Issue
Block a user