Message143319
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 :-)). |
|
Date |
User |
Action |
Args |
2011-09-01 12:07:49 | pitrou | set | recipients:
+ pitrou, brett.cannon, ncoghlan, baikie, neologix, python-dev |
2011-09-01 12:07:49 | pitrou | set | messageid: <1314878869.14.0.301391190347.issue12837@psf.upfronthosting.co.za> |
2011-09-01 12:07:48 | pitrou | link | issue12837 messages |
2011-09-01 12:07:48 | pitrou | create | |
|