Remove an undefined behavior due to unspecified order of function arguments evaluation.