8000 Fix issue #421 (#422) · python/cpython-source-deps@801c1bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 801c1bd

Browse files
Andreas-Krebbelatgreen
authored andcommitted
Fix issue #421 (#422)
Fantastic - thanks for digging into this.
1 parent 8660e69 commit 801c1bd

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

testsuite/libffi.bhaible/test-call.c

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ void
123123
int_tests (void)
124124
{
125125
int ir;
126+
ffi_arg retvalue;
126127
#if (!defined(DGTEST)) || DGTEST == 2
127128
ir = i_v();
128129
fprintf(out,"->%d\n",ir);
@@ -132,7 +133,8 @@ void
132133
ffi_cif cif;
133134
FFI_PREP_CIF_NOARGS(cif,ffi_type_sint);
134135
{
135-
FFI_CALL(cif,i_v,NULL,&ir);
136+
FFI_CALL(cif,i_v,NULL,&retvalue);
137+
ir = retvalue;
136138
}
137139
}
138140
fprintf(out,"->%d\n",ir);
@@ -150,7 +152,8 @@ void
150152
FFI_PREP_CIF(cif,argtypes,ffi_type_sint);
151153
{
152154
/*const*/ void* args[] = { &i1 };
153-
FFI_CALL(cif,i_i,args,&ir);
155+
FFI_CALL(cif,i_i,args,&retvalue);
156+
ir = retvalue;
154157
}
155158
}
156159
fprintf(out,"->%d\n",ir);
@@ -168,7 +171,8 @@ void
168171
FFI_PREP_CIF(cif,argtypes,ffi_type_sint);
169172
{
170173
/*const*/ void* args[] = { &i1, &i2 };
171-
FFI_CALL(cif,i_i2,args,&ir);
174+
FFI_CALL(cif,i_i2,args,&retvalue);
175+
ir = retvalue;
172176
}
173177
}
174178
fprintf(out,"->%d\n",ir);
@@ -186,7 +190,8 @@ void
186190
FFI_PREP_CIF(cif,argtypes,ffi_type_sint);
187191
{
188192
/*const*/ void* args[] = { &i1, &i2, &i3, &i4 };
189-
FFI_CALL(cif,i_i4,args,&ir);
193+
FFI_CALL(cif,i_i4,args,&retvalue);
194+
ir = retvalue;
190195
}
191196
}
192197
fprintf(out,"->%d\n",ir);
@@ -204,7 +209,8 @@ void
204209
FFI_PREP_CIF(cif,argtypes,ffi_type_sint);
205210
{
206211
/*const*/ void* args[] = { &i1, &i2, &i3, &i4, &i5, &i6, &i7, &i8 };
207-
FFI_CALL(cif,i_i8,args,&ir);
212+
FFI_CALL(cif,i_i8,args,&retvalue);
213+
ir = retvalue;
208214
}
209215
}
210216
fprintf(out,"->%d\n",ir);
@@ -222,7 +228,8 @@ void
222228
FFI_PREP_CIF(cif,argtypes,ffi_type_sint);
223229
{
224230
/*const*/ void* args[] = { &i1, &i2, &i3, &i4, &i5, &i6, &i7, &i8, &i9, &i10, &i11, &i12, &i13, &i14, &i15, &i16 };
225-
FFI_CALL(cif,i_i16,args,&ir);
231+
FFI_CALL(cif,i_i16,args,&retvalue);
232+
ir = retvalue;
226233
}
227234
}
228235
fprintf(out,"->%d\n",ir);

0 commit comments

Comments
 (0)
0