Working commit

This commit is contained in:
millb 2019-11-13 15:47:59 +03:00
parent dcbc4332c1
commit 642835b580

View File

@ -717,9 +717,9 @@ private:
size_t size = vec_from.size();
for (size_t i = 0; i < size; ++i)
{
String hex_string = toString(UUID(vec_from[i]));
std::cerr << hex_string << std::endl;
const ToType h = Impl::apply(reinterpret_cast<const char *>(&hex_string), 16);
String hash_string = toString<UUID>(UUID(vec_from[i]));
std::cerr << hash_string << std::endl;
const ToType h = Impl::apply(reinterpret_cast<const char *>(&hash_string), 16);
if (first)
vec_to[i] = h;
else
@ -741,9 +741,9 @@ private:
size_t size = vec_from.size();
for (size_t i = 0; i < size; ++i)
{
String hex_string = toString(vec_from[i]);
std::cerr << "\n\n" << hex_string << "\n\n";
const ToType h = Impl::apply(reinterpret_cast<const char *>(&hex_string), hex_string.size());
String hash_string = toString<Decimal128>(vec_from[i]);
std::cerr << "\n\n" << hash_string << "\n\n";
const ToType h = Impl::apply(reinterpret_cast<const char *>(&hash_string), hash_string.size());
if (first)
vec_to[i] = h;
else