aboutsummaryrefslogtreecommitdiff
path: root/primedev/core/math/bitbuf.h
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2024-01-21 19:34:19 +0000
committerGitHub <noreply@github.com>2024-01-21 20:34:19 +0100
commit7f84bdf8fd5c93286f000bc5f9314eab81128cee (patch)
treed97974691eb50b7cd8a2bf8a7cbc342fdc7bdd44 /primedev/core/math/bitbuf.h
parente72f0cbbac6ffcbfbf0c52f14a2a3cb7c18ba8fc (diff)
downloadNorthstarLauncher-7f84bdf8fd5c93286f000bc5f9314eab81128cee.tar.gz
NorthstarLauncher-7f84bdf8fd5c93286f000bc5f9314eab81128cee.zip
Address C4267 compiler warnings (#647)v1.22.2-rc1
Implicit conversion from `size_t` to a smaller type
Diffstat (limited to 'primedev/core/math/bitbuf.h')
-rw-r--r--primedev/core/math/bitbuf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/primedev/core/math/bitbuf.h b/primedev/core/math/bitbuf.h
index 5ca75455..a06dab17 100644
--- a/primedev/core/math/bitbuf.h
+++ b/primedev/core/math/bitbuf.h
@@ -630,7 +630,7 @@ public:
// at the head to make reading and detecting the end efficient.
int nHead = m_DataBytes & 3;
- int posBytes = startPos / 8;
+ size_t posBytes = startPos / 8;
if ((m_DataBytes < 4) || (nHead && (posBytes < nHead)))
{
// partial first dword
@@ -652,7 +652,7 @@ public:
}
else
{
- int adjustedPos = startPos - (nHead << 3);
+ size_t adjustedPos = startPos - (nHead << 3);
m_DataIn = reinterpret_cast<u32 const*>(reinterpret_cast<u8 const*>(m_Data) + ((adjustedPos / 32) << 2) + nHead);