Subject: [Boost-bugs] [Boost C++ Libraries] #2803: Boost.Python library source code mistake in class.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-26 11:37:03
#2803: Boost.Python library source code mistake in class.cpp
------------------------------------------+---------------------------------
Reporter: Rick Yang <rick68_at_[hidden]> | Owner: dave
Type: Patches | Status: new
Milestone: Boost 1.39.0 | Component: Python
Version: Boost 1.38.0 | Severity: Problem
Keywords: |
------------------------------------------+---------------------------------
Hi,
In class.cpp
{{{
line682: void* instance_holder::allocate(PyObject* self_, std::size_t
holder_offset, std::size_t holder_size
line683: {
line684: assert(self_->ob_type->ob_type == &class_metatype_object);
line685: objects::instance<>* self = (objects::instance<>*)self_;
line686:
line687: int total_size_needed = holder_offset + holder_size;
line688:
line689: if (-self->ob_size >= total_size_needed)
line630: {
}}}
in line 689, if condition will always be false.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2803> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC