boostorg / boostorg/python

Signed/unsigned conversion in Boost.Python

未关闭
#510 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
537
派生
223
平均合并
11 小时 22 分钟
30 天内合并 PR
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)

贡献指南

这个仓库没有索引到贡献指南

调研方向

Inspect boost/include/boost/python/suite/indexing/detail/indexing_suite_detail.hpp at lines 176 and 611, checking the types returned or modified by the referenced operations. Update the signed/unsigned handling without changing behavior, then build or run the relevant Boost.Python checks and confirm the compiler warnings are resolved.

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, python
领域
backend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
50/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。