ext/numo/narray/numo/template.h in numo-narray-0.9.0.6 vs ext/numo/narray/numo/template.h in numo-narray-0.9.0.7

- old
+ new

@@ -8,13 +8,14 @@ #define INIT_COUNTER( lp, c ) \ { c = (lp)->n[0]; } #define NDL_CNT(lp) ((lp)->n[0]) -#define NDL_PTR(lp,i) (((lp)->args[i]).ptr + ((lp)->args[i].iter[0]).pos) -#define NDL_STP(lp,i) (((lp)->args[i].iter[0]).step) -#define NDL_IDX(lp,i) (((lp)->args[i].iter[0]).idx) -#define NDL_ESZ(lp,i) (((lp)->args[i]).elmsz) +#define NDL_PTR(lp,i) ((lp)->args[i].ptr + (lp)->args[i].iter[0].pos) +#define NDL_STEP(lp,i) ((lp)->args[i].iter[0].step) +#define NDL_IDX(lp,i) ((lp)->args[i].iter[0].idx) +#define NDL_ESZ(lp,i) ((lp)->args[i].elmsz) +#define NDL_SHAPE(lp,i) ((lp)->args[i].shape) #define INIT_PTR( lp, i, pt, st ) \ { \ pt = ((lp)->args[i]).ptr + ((lp)->args[i].iter[0]).pos; \ st = ((lp)->args[i].iter[0]).step; \