Use proper bit function.

GitOrigin-RevId: c0254cc33fce40682b8609f5fb73b23a4ab1927b
This commit is contained in:
levlam 2020-06-17 04:16:59 +03:00
parent 76b5981968
commit c1688ca081

View File

@ -790,7 +790,7 @@ vector<string> CallActor::get_emojis_fingerprint(const string &key, const string
vector<string> result;
result.reserve(4);
for (int i = 0; i < 4; i++) {
uint64 num = bswap64(as<uint64>(sha256_buf + 8 * i));
uint64 num = big_endian_to_host64(as<uint64>(sha256_buf + 8 * i));
result.push_back(get_emoji_fingerprint(num));
}
return result;