We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8721e18 commit 578a4c7Copy full SHA for 578a4c7
src/ros/msg.h
@@ -37,7 +37,7 @@
37
38
#include <stdint.h>
39
#include <stddef.h>
40
-#include <cstring>
+#include <string.h>
41
42
namespace ros
43
{
@@ -65,7 +65,7 @@ class Msg
65
static int serializeAvrFloat64(unsigned char* outbuffer, const float f)
66
67
int32_t val;
68
- std::memcpy(&val, &f, sizeof(val));
+ memcpy(&val, &f, sizeof(val));
69
70
int16_t exp = ((val >> 23) & 255);
71
uint32_t mantissa = val & 0x7FFFFF;
@@ -179,7 +179,7 @@ class Msg
179
// Copy negative sign.
180
val |= (static_cast<uint32_t>(*(inbuffer++)) & 0x80) << 24;
181
182
- std::memcpy(f, &val, sizeof(val));
+ memcpy(f, &val, sizeof(val));
183
return 8;
184
}
185
0 commit comments