X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libffi%2Ftestsuite%2Flibffi.call%2Fcls_pointer_stack.c;h=d631cf848eecb2438af3d98d78d4737948528f96;hp=697f2710661e2385ac98ad3700508803477d5967;hb=c540fb7ee208553c2cfc440527b5f055fb8932dd;hpb=e1d6e63cf7be2604f91c5670c62b41b154f9d5e7;ds=inline diff --git a/libffi/testsuite/libffi.call/cls_pointer_stack.c b/libffi/testsuite/libffi.call/cls_pointer_stack.c index 697f2710661..d631cf848ee 100644 --- a/libffi/testsuite/libffi.call/cls_pointer_stack.c +++ b/libffi/testsuite/libffi.call/cls_pointer_stack.c @@ -129,7 +129,7 @@ int main (void) CHECK(ffi_prep_closure_loc(pcl, &cif, cls_pointer_gn, NULL, code) == FFI_OK); - res = (ffi_arg)((void*(*)(void*, void*))(code))(arg1, arg2); + res = (ffi_arg)(uintptr_t)((void*(*)(void*, void*))(code))(arg1, arg2); printf("res: 0x%08x\n", (unsigned int) res); // { dg-output "\n0x01234567 0x89abcdef: 0x8acf1356" }