vcpkg/ports/pcl/6053.diff

20 lines
772 B
Diff
Raw Normal View History

diff --git a/visualization/src/pcl_visualizer.cpp b/visualization/src/pcl_visualizer.cpp
index 5f073646ac1..bc9b959c246 100644
--- a/visualization/src/pcl_visualizer.cpp
+++ b/visualization/src/pcl_visualizer.cpp
@@ -4591,10 +4591,12 @@ pcl::visualization::PCLVisualizer::getUniqueCameraFile (int argc, char **argv)
// Build camera filename
if (valid)
{
- unsigned int digest[5];
+ boost::uuids::detail::sha1::digest_type digest;
sha1.get_digest (digest);
sstream << ".";
- sstream << std::hex << digest[0] << digest[1] << digest[2] << digest[3] << digest[4];
+ for (int i = 0; i < 5; ++i) {
+ sstream << std::hex << *(reinterpret_cast<unsigned int*>(&digest[0]) + i);
+ }
sstream << ".cam";
}
}