Skip to content

Commit 7221a37

Browse files
committed
don't cast smapi_port in inline assembly
the generated assembly looks identical with and without the cast on GCC-13 Fixes: #41
1 parent 650c25f commit 7221a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tp_smapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static int smapi_request(u32 inEBX, u32 inECX,
201201
"=m"(tmpEDI),
202202
"=m"(tmpESI)
203203
:"m"(inEBX), "m"(inECX), "m"(inEDI), "m"(inESI),
204-
"m"((u16)smapi_port)
204+
"m"(smapi_port)
205205
:"%eax", "%ebx", "%ecx", "%edx", "%edi",
206206
"%esi");
207207

0 commit comments

Comments
 (0)