mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
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.
This commit is contained in:
parent
f9a211220c
commit
474c745502
|
@ -282,7 +282,7 @@ static void FpuWrite(std::size_t id, u128 val, Kernel::Thread* thread = nullptr)
|
||||||
if (id >= UC_ARM64_REG_Q0 && id < FPCR_REGISTER) {
|
if (id >= UC_ARM64_REG_Q0 && id < FPCR_REGISTER) {
|
||||||
thread_context.vector_registers[id - UC_ARM64_REG_Q0] = val;
|
thread_context.vector_registers[id - UC_ARM64_REG_Q0] = val;
|
||||||
} else if (id == FPCR_REGISTER) {
|
} else if (id == FPCR_REGISTER) {
|
||||||
thread_context.fpcr = val[0];
|
thread_context.fpcr = static_cast<u32>(val[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue