On Thu, 27 May 2004 22:02:58 +0200, André Johansen wrote:
> Should Wine care about such undefined behaviour? Currently, it seems
> Wine uses the GNU libc implementation, giving a different result than
> when running in Windows.
Yes, if software depends on it we care ...
> (In my case, an IP add
The atoi() function has undefined usage when trying to convert numbers
outside the range of int.
When parsing numbers >= 2^31, GNU libc seems to truncate the number to
2^31-1; however, with MSVC, such a number would wrap, and when cast to
an unsigned integer, numbers within an unsigned int are pre