aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc_generator.py
diff options
context:
space:
mode:
authorMerry <git@mary.rs>2023-02-21 21:36:20 +0000
committerMerry <git@mary.rs>2023-02-21 21:39:17 +0000
commitc9678bda2440423ec55d420aedd9a11d79834649 (patch)
treea08342651979d1eb652053efe35faa0136fbfab0 /src/core/hle/kernel/svc_generator.py
parent89221ca7d549492dd66286214571021b21215c8a (diff)
svc: Fix type consistency (exposed on macOS)
Diffstat (limited to 'src/core/hle/kernel/svc_generator.py')
-rw-r--r--src/core/hle/kernel/svc_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc_generator.py b/src/core/hle/kernel/svc_generator.py
index 34d2ac659..0cce69e85 100644
--- a/src/core/hle/kernel/svc_generator.py
+++ b/src/core/hle/kernel/svc_generator.py
@@ -443,7 +443,7 @@ def emit_wrapper(wrapped_fn, suffix, register_info, arguments, byte_size):
lines.append("")
for output_type, var_name, _, is_address in output_writes:
- output_type = "uintptr_t" if is_address else output_type
+ output_type = "uint64_t" if is_address else output_type
lines.append(f"{output_type} {var_name}{{}};")
for input_type, var_name, _ in input_reads:
lines.append(f"{input_type} {var_name}{{}};")
@@ -630,7 +630,7 @@ def emit_call(bitness, names, suffix):
def build_fn_declaration(return_type, name, arguments):
arg_list = ["Core::System& system"]
for arg in arguments:
- type_name = "uintptr_t" if arg.is_address else arg.type_name
+ type_name = "uint64_t" if arg.is_address else arg.type_name
pointer = "*" if arg.is_output and not arg.is_outptr else ""
arg_list.append(f"{type_name}{pointer} {arg.var_name}")