id summary reporter owner description type status milestone component version severity resolution keywords cc 3189 Python integer/long conversion to C++ unsigned int/long is broken anderson.lizardo@… Dave Abrahams "The following snippet in libs/python/src/converter/builtin_converters.cpp: {{{ return numeric_cast( PyLong_Check(intermediate) ? PyLong_AsUnsignedLong(intermediate) : PyInt_AS_LONG(intermediate)); }}} does not check if an exception was thrown by the Python/C conversion functions. Therefore, in case of error, these functions are returning -1, which is being cast to unsigned int. Another missing check is when the Python integer value to be converted is negative. In this case, a proper exception (such as ValueError) must be thrown." Patches closed Boost 1.40.0 python USE GITHUB Boost Development Trunk Problem fixed