mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Fix sanitizer warning about signed shifts
This commit is contained in:
parent
c7a29d1fb0
commit
6760397f6c
1 changed files with 2 additions and 1 deletions
|
@ -644,7 +644,8 @@ utils::hashQString(const QString &input)
|
||||||
{
|
{
|
||||||
auto h = QCryptographicHash::hash(input.toUtf8(), QCryptographicHash::Sha1);
|
auto h = QCryptographicHash::hash(input.toUtf8(), QCryptographicHash::Sha1);
|
||||||
|
|
||||||
return (h[0] << 24) ^ (h[1] << 16) ^ (h[2] << 8) ^ h[3];
|
return (static_cast<uint32_t>(h[0]) << 24) ^ (static_cast<uint32_t>(h[1]) << 16) ^
|
||||||
|
(static_cast<uint32_t>(h[2]) << 8) ^ static_cast<uint32_t>(h[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
QColor
|
QColor
|
||||||
|
|
Loading…
Reference in a new issue