summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-11-26 19:58:20 -0500
committerGravatar Lioncash2018-11-26 19:58:23 -0500
commit474c7455026e048e9957edb974d45a986e3e534f (patch)
treec64130bbb1f4058f356d79c76634c51a9fe39d2d /src
parentMerge pull request #1763 from ReinUsesLisp/bfi (diff)
downloadyuzu-474c7455026e048e9957edb974d45a986e3e534f.tar.gz
yuzu-474c7455026e048e9957edb974d45a986e3e534f.tar.xz
yuzu-474c7455026e048e9957edb974d45a986e3e534f.zip
gdbstub: Silence value truncation warning within FpuWrite()
Previously this would cause an implicit truncation warning about assigning a u64 value to a u32 value without an explicit cast.
Diffstat (limited to 'src')
-rw-r--r--src/core/gdbstub/gdbstub.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index 687dea409..e6b5171ee 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -282,7 +282,7 @@ static void FpuWrite(std::size_t id, u128 val, Kernel::Thread* thread = nullptr)
282 if (id >= UC_ARM64_REG_Q0 && id < FPCR_REGISTER) { 282 if (id >= UC_ARM64_REG_Q0 && id < FPCR_REGISTER) {
283 thread_context.vector_registers[id - UC_ARM64_REG_Q0] = val; 283 thread_context.vector_registers[id - UC_ARM64_REG_Q0] = val;
284 } else if (id == FPCR_REGISTER) { 284 } else if (id == FPCR_REGISTER) {
285 thread_context.fpcr = val[0]; 285 thread_context.fpcr = static_cast<u32>(val[0]);
286 } 286 }
287} 287}
288 288