mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 10:55:45 +00:00
maxwell_3d: Silence truncation warnings
A trivial warning caused by not using size_t as the argument types instead of u32.
This commit is contained in:
parent
32588f88da
commit
0b0ac56219
1 changed files with 2 additions and 1 deletions
|
@ -101,7 +101,8 @@ void Maxwell3D::InitializeRegisterDefaults() {
|
||||||
#define DIRTY_REGS_POS(field_name) (offsetof(Maxwell3D::DirtyRegs, field_name))
|
#define DIRTY_REGS_POS(field_name) (offsetof(Maxwell3D::DirtyRegs, field_name))
|
||||||
|
|
||||||
void Maxwell3D::InitDirtySettings() {
|
void Maxwell3D::InitDirtySettings() {
|
||||||
const auto set_block = [this](const u32 start, const u32 range, const u8 position) {
|
const auto set_block = [this](const std::size_t start, const std::size_t range,
|
||||||
|
const u8 position) {
|
||||||
const auto start_itr = dirty_pointers.begin() + start;
|
const auto start_itr = dirty_pointers.begin() + start;
|
||||||
const auto end_itr = start_itr + range;
|
const auto end_itr = start_itr + range;
|
||||||
std::fill(start_itr, end_itr, position);
|
std::fill(start_itr, end_itr, position);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue