Skip to content

Commit

Permalink
libffi: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongRuoyu committed Sep 10, 2024
1 parent 6c529b9 commit 8972e81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Formula/lib/libffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ def install
#include <ffi.h>
/* 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()
Expand Down

0 comments on commit 8972e81

Please sign in to comment.