Fix signature of function pointer in cls_dbls_struct (#648)
authorHood Chatham <hood@mit.edu>
Sun, 27 Jun 2021 16:49:31 +0000 (09:49 -0700)
committerGitHub <noreply@github.com>
Sun, 27 Jun 2021 16:49:31 +0000 (12:49 -0400)
testsuite/libffi.closures/cls_dbls_struct.c

index e451dea51ba69f1ce5d06df9b33bc03e02de7619..25b8b635069e24a9e7db29bce9b8f35f4a60d915 100644 (file)
@@ -56,7 +56,7 @@ int main(int argc __UNUSED__, char** argv __UNUSED__)
 
        CHECK(ffi_prep_closure_loc(pcl, &cif, closure_test_gn, NULL, code) == FFI_OK);
 
-       ((void*(*)(Dbls))(code))(arg);
+       ((void (*)(Dbls))(code))(arg);
        /* { dg-output "1.0 2.0" } */
 
        closure_test_fn(arg);