comparison OrthancFramework/Sources/Toolbox.cpp @ 5814:122fd5f97d39

fix
author Alain Mazy <am@orthanc.team>
date Wed, 25 Sep 2024 16:36:04 +0200
parents 2b429588de28
children
comparison
equal deleted inserted replaced
5813:2b429588de28 5814:122fd5f97d39
835 unsigned int digest[5]; 835 unsigned int digest[5];
836 // Sanity check for the memory layout: A SHA-1 digest is 160 bits wide 836 // Sanity check for the memory layout: A SHA-1 digest is 160 bits wide
837 assert(sizeof(unsigned int) == 4 && sizeof(digest) == (160 / 8)); 837 assert(sizeof(unsigned int) == 4 && sizeof(digest) == (160 / 8));
838 assert(sizeof(boost::uuids::detail::sha1::digest_type) == 20); 838 assert(sizeof(boost::uuids::detail::sha1::digest_type) == 20);
839 839
840 sha1.get_digest(digest)); 840 sha1.get_digest(digest);
841 841
842 result.resize(8 * 5 + 4); 842 result.resize(8 * 5 + 4);
843 sprintf(&result[0], "%08x-%08x-%08x-%08x-%08x", 843 sprintf(&result[0], "%08x-%08x-%08x-%08x-%08x",
844 digest[0], 844 digest[0],
845 digest[1], 845 digest[1],