boostorg / boostorg/python

Signed/unsigned conversion in Boost.Python

Ouverte
#510 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C++
Étoiles
537
Forks
223
Merge moyen
11 h 22 min
PR mergées (30 j)
2

Description

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)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.