OSDN Git Service

PR libffi/46661
[pf3gnuchains/gcc-fork.git] / libffi / testsuite / libffi.call / cls_pointer.c
index fadd353..cf03993 100644 (file)
@@ -65,7 +65,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);
        /* { dg-output "\n0x12345678 0x89abcdef: 0x9be02467" } */
        printf("res: 0x%08x\n", (unsigned int) res);
        /* { dg-output "\nres: 0x9be02467" } */