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 071adba commit 092e3efCopy full SHA for 092e3ef
rviz_common/src/rviz_common/depth_cloud_mld.cpp
@@ -252,7 +252,9 @@ MultiLayerDepth::generatePointCloudSL(
252
++cloud_data_ptr;
253
*cloud_data_ptr = depth;
254
255
- *cloud_data_ptr = *reinterpret_cast<float *>(&color);
+ float ret;
256
+ std::memcpy(&ret, &color, sizeof(float));
257
+ *cloud_data_ptr = ret;
258
259
260
++point_count;
@@ -346,7 +348,9 @@ MultiLayerDepth::generatePointCloudML(
346
348
347
349
350
351
352
353
354
355
356
0 commit comments