Skip to content

Signed/unsigned conversion in Boost.Python #510

@christian-uehara

Description

@christian-uehara

Using Boost v1.90

In boost/include/boost/python/suite/indexing/detail/indexing_suite_detail.hpp there are locals that have a signed/unsigned mismatch.

On L176, a local variable index declared as long is assigned to a return that can be unsigned (size_t).

Similarly, on L611, another local variable from is declared as long then operator+= is used for a variable that has an unsigned type.

This results in an unnecessarily wordy warning in the compiler (in my case msvc 14.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions