mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
054637a2ae
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
20 lines
772 B
Diff
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";
|
|
}
|
|
}
|