boostorg / boostorg/python

Signed/unsigned conversion in Boost.Python

オープン
#510 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
537
フォーク
223
平均マージ
11時間 22分
マージ済み PR(30日)
2

説明

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)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。