mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[util] Fix Sha1 dword extraction
Previously we were getting incorrect values here.
The u suffix is no longer necessary, which was originally there to work around a MSVC compiler warning which now doesn't happen under the new code 🤷♀
This commit is contained in:
parent
19fa1c405c
commit
e8ee7a0790
@ -24,10 +24,10 @@ namespace dxvk {
|
||||
std::string toString() const;
|
||||
|
||||
uint32_t dword(uint32_t id) const {
|
||||
return uint32_t(m_digest[4u + id + 0u]) << 0u
|
||||
| uint32_t(m_digest[4u + id + 1u]) << 8u
|
||||
| uint32_t(m_digest[4u + id + 2u]) << 16u
|
||||
| uint32_t(m_digest[4u + id + 3u]) << 24u;
|
||||
return uint32_t(m_digest[4 * id + 0]) << 0
|
||||
| uint32_t(m_digest[4 * id + 1]) << 8
|
||||
| uint32_t(m_digest[4 * id + 2]) << 16
|
||||
| uint32_t(m_digest[4 * id + 3]) << 24;
|
||||
}
|
||||
|
||||
bool operator == (const Sha1Hash& other) const {
|
||||
|
Loading…
Reference in New Issue
Block a user