--- libelwix/inc/elwix/aarray.h 2019/08/14 11:39:11 1.10.2.1 +++ libelwix/inc/elwix/aarray.h 2019/09/24 15:49:52 1.11 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aarray.h,v 1.10.2.1 2019/08/14 11:39:11 misho Exp $ +* $Id: aarray.h,v 1.11 2019/09/24 15:49:52 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -72,7 +72,7 @@ typedef struct _tagArray { e_free((_arr)->arr_data[__d]); \ (_arr)->arr_data[__d] = NULL; \ } while (0) -#define array_Var(_arr, _d) (assert((_arr) && (_arr)->arr_num > _d), (ait_val_t*) ((_arr)->arr_data + _d)) +#define array_Var(_arr, _d) (assert((_arr) && (_arr)->arr_num > _d), (ait_val_t*) (_arr)->arr_data[_d]) /* * array_Init() - Create and initialize dynamic array