MicrosoftEdge / MicrosoftEdge/WebView2Feedback

signed/unsigned mismatch warning in file generated by wv2winrt

Open
#3,169 0 comments 1 reaction 1 assignee View on GitHub

@lflores-ms is already working on this.

Since Feb 6, 2023.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description

Files generated by wv2winrt tool throws warning when compiled in x86 configuration

Version
SDK: 1.0.1264.42
Framework: UWP
OS: Win11

Repro Steps

  • I have a Adapter project similar to WinRTAdapter project in the sample
  • The Adapter project I am using depends on Windows.Foundation.Collections. Thus it creates a Windows.Foundation.Collections.g.cpp.

Actual Behavior

  • When compiling in x64 configuration, it compiles fine.
  • But when compiling in x86 configuration, I get a compiler warning C4018

Expected Behavior

  • Generated code compiles without any warnings.

Additional context
Exact warning that I get - warning C4018: '<': signed/unsigned mismatch (compiling source file Generated Files\wv2winrt\Windows.Foundation.Collections.g.cpp)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.