Antoine Pitrou <[email protected]> added the comment: 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 :-)). ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue12837> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
