Skip to content

PRs failing due to C++ casting errors (VS 17.7 release?) #11999

@jonthysell

Description

@jonthysell

Problem Description

Starting to see failures in dependabot PRs where C++ code is now failing with errors like:

vnext\Test\HttpServer.cpp#L288
vnext\Test\HttpServer.cpp(288,17): Error C2397: conversion from 'size_t' to 'int' requires a narrowing conversion

I think this is due to the latest VS 2022 changing how it does implicit casting.

Steps To Reproduce

See example failed PR: https://github.com/microsoft/react-native-windows/pull/11991/checks?check_run_id=15756655233

Expected Results

No response

CLI version

npx react-native -v

Environment

npx react-native info

Target Platform Version

10.0.19041

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

None

Snack, code example, screenshot, or link to a repository

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions