more pcf50606 patches

Andy Green andy at openmoko.com
Fri Jan 25 18:52:38 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:

>> While compilers sometimes automatically promote data types, you really
>> should not count on it.  Try this:

You're right, but C specifically talks about *promoting* to *int*.  In
this last example you are already at int (you can't 'promote' to it
then) and trying to blow out the arithmetic to __int64 size, it's a
different case.

The bottom line is the overflow situation you are patching against
cannot happen, you can drop that stanza of the patch.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHmiHmOjLpvpq7dMoRAuNzAJ9bZVbXIfTysvbs94KZlR61fM3wPACeOjm7
PKZbkox2JvHwp6kj7RffS5k=
=k+15
-----END PGP SIGNATURE-----




More information about the openmoko-kernel mailing list