This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients baikie, brett.cannon, ncoghlan, neologix, pitrou, python-dev
Date 2011-09-01.12:07:48
SpamBayes Score 0.00044394916
Marked as misclassified No
Message-id <1314878869.14.0.301391190347.issue12837@psf.upfronthosting.co.za>
In-reply-to
Content
If you're casting to a larger signed type, then the semantics change, since there is a sign extension.
For example (unsigned int) 0xFFFFFFFF could be cast to (long long) -1.

You could cast to size_t instead and compare the result to SOCKLEN_T_MAX (which currently doesn't exist :-)).
History
Date User Action Args
2011-09-01 12:07:49pitrousetrecipients: + pitrou, brett.cannon, ncoghlan, baikie, neologix, python-dev
2011-09-01 12:07:49pitrousetmessageid: <1314878869.14.0.301391190347.issue12837@psf.upfronthosting.co.za>
2011-09-01 12:07:48pitroulinkissue12837 messages
2011-09-01 12:07:48pitroucreate