Skip to content

No-op: emitwasm.cpp sign-compare warning already fixed on main#127874

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/fix-integer-comparison-error
Closed

No-op: emitwasm.cpp sign-compare warning already fixed on main#127874
Copilot wants to merge 1 commit intomainfrom
copilot/fix-integer-comparison-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

Description

Build 1409473 failed with -Werror=sign-compare in emitOutputULEB128Padded:

emitwasm.cpp:604:14: error: comparison of integer expressions of different signedness: 'int' and 'unsigned int'
  604 |     for (; i < PADDED_RELOC_SIZE - 1; i++)

The loop variable i was int while PADDED_RELOC_SIZE is static const unsigned.

Changes

Verified by reproducing the diagnostic in isolation under g++ -Wsign-compare -Werror: the prior int i form errors, the current unsigned i form compiles cleanly.

The referenced issue can be closed as already resolved.

Copilot AI self-assigned this May 6, 2026
Copilot AI review requested due to automatic review settings May 6, 2026 16:32
Copilot AI review requested due to automatic review settings May 6, 2026 16:32
Copilot AI changed the title [WIP] Fix comparison of integer expressions of different signedness No-op: emitwasm.cpp sign-compare warning already fixed on main May 6, 2026
Copilot finished work on behalf of EgorBo May 6, 2026 16:42
Copilot AI requested a review from EgorBo May 6, 2026 16:42
@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label May 6, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@EgorBo EgorBo closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

emitwasm.cpp:604:14: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’

2 participants