Skip to content

Fix -Wsign-conversion warning in commit_submessage() - #156

Open
kkaefer wants to merge 1 commit into
kk/fix-ci-imagesfrom
kk/fix-sign-conversion-commit-submessage
Open

kkaefer wants to merge 1 commit into
kk/fix-ci-imagesfrom
kk/fix-sign-conversion-commit-submessage

Conversation

@kkaefer

@kkaefer kkaefer commented Oct 8, 2026

Copy link
Copy Markdown
Member

Removes the following compilation warning under -Wsign-conversion:

basic_pbf_writer.hpp:207: warning: implicit conversion changes signedness: 'const int' to 'std::size_t'

The return value from add_varint_to_buffer is a signed integer. Technically, it should be unsigned since it can never be negative, but changing this would cause an API change, so we just keep it as is.

@kkaefer
kkaefer requested a review from a team as a code owner October 8, 2026 09:36
@kkaefer
kkaefer force-pushed the kk/fix-sign-conversion-commit-submessage branch from 32d4fe8 to 8eadf02 Compare October 8, 2026 12:41
@kkaefer
kkaefer changed the base branch from master to kk/fix-ci-images October 8, 2026 12:41
@kkaefer
kkaefer added this pull request to stack #158 October 8, 2026 12:44
@kkaefer
kkaefer requested a review from joto October 8, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant