From c381e8a29efb87e2006ae49035f3b41d85f4325f Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 30 Jun 2019 23:50:25 +0100 Subject: [PATCH] [util] Add correct type suffixes to Sha1Hash dword function to silence compiler warning --- src/util/sha1/sha1_util.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/sha1/sha1_util.h b/src/util/sha1/sha1_util.h index a9c85fa4f..b1859b7b3 100644 --- a/src/util/sha1/sha1_util.h +++ b/src/util/sha1/sha1_util.h @@ -24,10 +24,10 @@ namespace dxvk { std::string toString() const; uint32_t dword(uint32_t id) const { - 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; + 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; } bool operator == (const Sha1Hash& other) const {