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