summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2021-05-16 00:42:10 -0400
committerGravatar Morph2021-05-16 04:11:00 -0400
commit049769a0c9a5334a4e39cd8b1a0303aff94b0bf7 (patch)
tree85712c4a4be8ade5c80b9db70b21547ff1242e7d
parenthle_ipc: Add a getter for PID (diff)
downloadyuzu-049769a0c9a5334a4e39cd8b1a0303aff94b0bf7.tar.gz
yuzu-049769a0c9a5334a4e39cd8b1a0303aff94b0bf7.tar.xz
yuzu-049769a0c9a5334a4e39cd8b1a0303aff94b0bf7.zip
hle_ipc: unsigned -> u32
This is more concise and consistent with the rest of the codebase.
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/hle_ipc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp
index f79b6b47e..24700f7a5 100644
--- a/src/core/hle/kernel/hle_ipc.cpp
+++ b/src/core/hle/kernel/hle_ipc.cpp
@@ -86,16 +86,16 @@ void HLERequestContext::ParseCommandBuffer(const KHandleTable& handle_table, u32
86 } 86 }
87 } 87 }
88 88
89 for (unsigned i = 0; i < command_header->num_buf_x_descriptors; ++i) { 89 for (u32 i = 0; i < command_header->num_buf_x_descriptors; ++i) {
90 buffer_x_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorX>()); 90 buffer_x_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorX>());
91 } 91 }
92 for (unsigned i = 0; i < command_header->num_buf_a_descriptors; ++i) { 92 for (u32 i = 0; i < command_header->num_buf_a_descriptors; ++i) {
93 buffer_a_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>()); 93 buffer_a_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
94 } 94 }
95 for (unsigned i = 0; i < command_header->num_buf_b_descriptors; ++i) { 95 for (u32 i = 0; i < command_header->num_buf_b_descriptors; ++i) {
96 buffer_b_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>()); 96 buffer_b_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
97 } 97 }
98 for (unsigned i = 0; i < command_header->num_buf_w_descriptors; ++i) { 98 for (u32 i = 0; i < command_header->num_buf_w_descriptors; ++i) {
99 buffer_w_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>()); 99 buffer_w_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
100 } 100 }
101 101
@@ -148,14 +148,14 @@ void HLERequestContext::ParseCommandBuffer(const KHandleTable& handle_table, u32
148 IPC::CommandHeader::BufferDescriptorCFlag::OneDescriptor) { 148 IPC::CommandHeader::BufferDescriptorCFlag::OneDescriptor) {
149 buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>()); 149 buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
150 } else { 150 } else {
151 unsigned num_buf_c_descriptors = 151 u32 num_buf_c_descriptors =
152 static_cast<unsigned>(command_header->buf_c_descriptor_flags.Value()) - 2; 152 static_cast<u32>(command_header->buf_c_descriptor_flags.Value()) - 2;
153 153
154 // This is used to detect possible underflows, in case something is broken 154 // This is used to detect possible underflows, in case something is broken
155 // with the two ifs above and the flags value is == 0 || == 1. 155 // with the two ifs above and the flags value is == 0 || == 1.
156 ASSERT(num_buf_c_descriptors < 14); 156 ASSERT(num_buf_c_descriptors < 14);
157 157
158 for (unsigned i = 0; i < num_buf_c_descriptors; ++i) { 158 for (u32 i = 0; i < num_buf_c_descriptors; ++i) {
159 buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>()); 159 buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
160 } 160 }
161 } 161 }