-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Robert Millan on 11/9/2009 2:50 PM: >> I'm not a fan of unnecessary casts. Can't we instead write this as: >> >> : p - startp + 1U; >> >> to still show that we intend for unsigned math, but without a cast? > > The warning persists.
Can you show the exact gcc version, command line options, and warning output that you are seeing with this construct? - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr+wZQACgkQ84KuGfSFAYD4KQCggrt+coE/xyY209QKLVyYFhzy g3wAoLR3MBXUcdUB2SAAbUa28B5ww6Ex =r6KP -----END PGP SIGNATURE-----