[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

Serhiy Storchaka report at bugs.python.org
Mon Oct 29 22:17:18 CET 2012


Serhiy Storchaka added the comment:

> Checking whether a type is unsigned in configure.ac might be cumbersome...

This can be done in compile time. Something like:

  if ((uid_t)-1 > 0) ...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2005>
_______________________________________


More information about the Python-bugs-list mailing list