Skip to content

Commit 2fb26ca

Browse files
committed
Remove redundant typedef and fix self-reference in NA_MD_LOOP
1 parent 766f6cd commit 2fb26ca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/numo/narray/ndloop.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ 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-
4341
typedef struct NA_MD_LOOP {
4442
int narg;
4543
int nin;
@@ -58,7 +56,7 @@ typedef struct NA_MD_LOOP {
5856
VALUE reduce;
5957
VALUE loop_opt;
6058
ndfunc_t *ndfunc;
61-
void (*loop_func)(ndfunc_t *, na_md_loop_t *);
59+
void (*loop_func)(ndfunc_t *, struct NA_MD_LOOP *);
6260
} na_md_loop_t;
6361

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

0 commit comments

Comments
 (0)