The fake element will be added in lam_ddt_commit function.
This commit was SVN r1097.
Этот коммит содержится в:
родитель
a82a47a33e
Коммит
2a6e129269
@ -131,13 +131,6 @@ int lam_ddt_add( dt_desc_t* pdtBase, dt_desc_t* pdtAdd, unsigned int count, long
|
|||||||
/* should I add some space until the extent of this datatype ? */
|
/* should I add some space until the extent of this datatype ? */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* let's add a fake element at the end just to avoid useless comparaisons
|
|
||||||
* in pack/unpack functions.
|
|
||||||
*/
|
|
||||||
pLast++;
|
|
||||||
pLast->type = 0;
|
|
||||||
pLast->flags = 0;
|
|
||||||
|
|
||||||
pdtBase->size += count * pdtAdd->size;
|
pdtBase->size += count * pdtAdd->size;
|
||||||
pdtBase->true_lb = LMIN( pdtBase->true_lb, pdtAdd->true_lb + disp );
|
pdtBase->true_lb = LMIN( pdtBase->true_lb, pdtAdd->true_lb + disp );
|
||||||
pdtBase->true_ub = LMAX( pdtBase->true_ub,
|
pdtBase->true_ub = LMAX( pdtBase->true_ub,
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user