Skip to content

Commit fa505bd

Browse files
committed
Fix function pointer declaration
1 parent 2167636 commit fa505bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/numo/narray/ndloop.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ typedef struct NA_LOOP_XARGS {
3838
bool free_user_iter; // alloc LARG(lp,j).iter=lp->xargs[j].iter
3939
} na_loop_xargs_t;
4040

41+
typedef struct NA_MD_LOOP na_md_loop_t;
42+
4143
typedef struct NA_MD_LOOP {
4244
int narg;
4345
int nin;
@@ -56,7 +58,7 @@ typedef struct NA_MD_LOOP {
5658
VALUE reduce;
5759
VALUE loop_opt;
5860
ndfunc_t *ndfunc;
59-
void (*loop_func)();
61+
void (*loop_func)(ndfunc_t *, na_md_loop_t *);
6062
} na_md_loop_t;
6163

6264
#define LARG(lp,iarg) ((lp)->user.args[iarg])

0 commit comments

Comments
 (0)