From 8972e812c924773d8f4e9a9f6ab742bd6db74335 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Tue, 10 Sep 2024 16:41:19 +0800 Subject: [PATCH] libffi: fix test https://github.com/Homebrew/homebrew-core/issues/184132#issuecomment-2340000232 --- Formula/lib/libffi.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Formula/lib/libffi.rb b/Formula/lib/libffi.rb index f74ca76e435fc..ceafcb6fbc6ca 100644 --- a/Formula/lib/libffi.rb +++ b/Formula/lib/libffi.rb @@ -41,10 +41,9 @@ def install #include /* Acts like puts with the file given at time of enclosure. */ - void puts_binding(ffi_cif *cif, unsigned int *ret, void* args[], - FILE *stream) + void puts_binding(ffi_cif *cif, void *ret, void** args, void *stream) { - *ret = fputs(*(char **)args[0], stream); + *(unsigned int *)ret = fputs(*(char **)args[0], (FILE *)stream); } int main()