about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorxctan <xctan@cirno.icu>2024-01-29 12:24:40 +0000
committerGitHub <noreply@github.com>2024-01-29 13:24:40 +0100
commitd5b182cac00bc78fe1a90c3acdb841b7468e8bb3 (patch)
tree6c7566c10afd601ab5a40bfc26e988b49134ccd0
parentce296f0e32b857f92a207a6fa6d448787fe72ea4 (diff)
downloadbox64-d5b182cac00bc78fe1a90c3acdb841b7468e8bb3.tar.gz
box64-d5b182cac00bc78fe1a90c3acdb841b7468e8bb3.zip
[WRAPPERS] Fixed some typos in rebuild_wrappers.py (#1227)
-rwxr-xr-xrebuild_wrappers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rebuild_wrappers.py b/rebuild_wrappers.py
index 1d9d52b4..6ecbd98f 100755
--- a/rebuild_wrappers.py
+++ b/rebuild_wrappers.py
@@ -1246,7 +1246,7 @@ def main(root: str, files: Iterable[Filename], ver: str):
 			"io_convert(*(void**)(R_RSP + {p})), ",     # S
 			"*(void**)(R_RSP + {p}), ",                 # N
 			"*(void**)(R_RSP + {p}),*(void**)(R_RSP + {p} + 8), ", # M
-			"*(unsigned __int128)(R_RSP + {p}), ",      # H
+			"*(unsigned __int128*)(R_RSP + {p}), ",     # H
 			"*(void**)(R_RSP + {p}), ",                 # P
 			"*(void**)(R_RSP + {p}), ",                 # A
 			"*(complexf_t*)(R_RSP + {p}), ",            # x
@@ -1379,7 +1379,7 @@ def main(root: str, files: Iterable[Filename], ver: str):
 				return ret + function_args_systemV(args[1:], d, r, x)
 			elif (x < 8) and (vxmm[idx] > 0):
 				# Value is in an XMM register
-				return arg_x[idx].format(p=x) + function_args_systemV(args[1:], d, r, x+1)
+				return arg_x[idx].format(p=x) + function_args_systemV(args[1:], d, r, x+vxmm[idx])
 			elif vstack[idx] > 0:
 				# Value is in the stack
 				return arg_s[idx].format(p=d) + function_args_systemV(args[1:], d+8*vstack[idx], r, x)