Print this page
5083 avoid undefined order of operations in assignments
*** 933,944 ****
(*ldgp)->ldvp = *ldvp;
*ngrps += 1;
HXGE_DEBUG_MSG((NULL, INT_CTL, "==> hxge_ldgv_setup(done): "
"ldv %d endldg %d ldg %d, ldvp $%p",
ldv, endldg, (*ldgp)->ldg, (*ldgp)->ldvp));
! (*ldvp) = ++*ldvp;
! (*ldgp) = ++*ldgp;
HXGE_DEBUG_MSG((NULL, INT_CTL,
"==> hxge_ldgv_setup: new ngrps %d", *ngrps));
}
HXGE_DEBUG_MSG((NULL, INT_CTL, "==> hxge_ldgv_setup: "
--- 933,944 ----
(*ldgp)->ldvp = *ldvp;
*ngrps += 1;
HXGE_DEBUG_MSG((NULL, INT_CTL, "==> hxge_ldgv_setup(done): "
"ldv %d endldg %d ldg %d, ldvp $%p",
ldv, endldg, (*ldgp)->ldg, (*ldgp)->ldvp));
! ++*ldvp;
! ++*ldgp;
HXGE_DEBUG_MSG((NULL, INT_CTL,
"==> hxge_ldgv_setup: new ngrps %d", *ngrps));
}
HXGE_DEBUG_MSG((NULL, INT_CTL, "==> hxge_ldgv_setup: "