--- On Fri, 9/11/09, Wladimir A. Jimenez B. wjimenez@kasbeel.cl wrote:
Filip:
*NetworkAddressLength = (UINT)((j+1)/2); Do not equal to
- if ((j % 2) == 0) ////// if even
- {
- *NetworkAddressLength = (UINT)(j/2);
- }
- else
- {
- *NetworkAddressLength = (UINT)((j/2)+1);
- }
The only time when they would differ is if j == UINT_MAX (the shorter version would overflow). But that can never happen, since j is the length of a string.