vcpkg/ports/pcl/6053.diff
Osyotr 054637a2ae
[boost] Update to 1.86.0 (#40465)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2024-10-18 13:59:30 -07:00

20 lines
772 B
Diff

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";
}
}