1
0
mirror of https://github.com/citra-emu/citra.git synced 2024-12-24 21:30:06 +00:00

Apply suggestions from code review

Co-Authored-By: Pengfei Zhu <zhupf321@gmail.com>
This commit is contained in:
Hamish Milne 2020-03-28 16:26:24 +00:00 committed by GitHub
parent 4aab38f133
commit bbf8e876ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
#pragma once #pragma once
#include <array> #include <array>
#include "boost/serialization/split_member.hpp" #include <boost/serialization/split_member.hpp>
#include "common/bit_field.h" #include "common/bit_field.h"
#include "common/common_types.h" #include "common/common_types.h"
#include "common/vector_math.h" #include "common/vector_math.h"
@ -239,7 +239,7 @@ private:
void load(Archive& ar, const unsigned int file_version) { void load(Archive& ar, const unsigned int file_version) {
u32 offset{}; u32 offset{};
ar >> offset; ar >> offset;
cmd_list.head_ptr = (u32*)VideoCore::g_memory->GetPhysicalPointer(cmd_list.addr); cmd_list.head_ptr = reinterpret_cast<u32*>(VideoCore::g_memory->GetPhysicalPointer(cmd_list.addr));
cmd_list.current_ptr = cmd_list.head_ptr + offset; cmd_list.current_ptr = cmd_list.head_ptr + offset;
} }
}; };