Skip to content

Commit 0959589

Browse files
Fix C26474 (use implicit conversion).
1 parent 321c2aa commit 0959589

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Servers/IIS/AspNetCoreModuleV2/DefaultRules.ruleset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<Rule Id="C26471" Action="None" /> <!-- Don't use reinterpret_cast. A cast from void* can use static_cast -->
7777
<Rule Id="C26472" Action="None" /> <!-- Don't use a static_cast for arithmetic conversions. Use brace initialization, gsl::narrow_cast, or gsl::narrow. -->
7878
<Rule Id="C26473" Action="None" /> <!-- Don't cast between pointer types where the source type and the target type are the same -->
79-
<Rule Id="C26474" Action="None" /> <!-- Use implicit conversion -->
79+
<Rule Id="C26474" Action="Error" />
8080
<Rule Id="C26475" Action="Error" />
8181
<Rule Id="C26476" Action="None" /> <!-- Expression/symbol 'name' uses a naked union 'union' with multiple type pointers: Use variant instead -->
8282
<Rule Id="C26477" Action="Error" />

src/Servers/IIS/AspNetCoreModuleV2/OutOfProcessRequestHandler/forwardinghandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ FORWARDING_HANDLER::ExecuteRequestHandler()
262262
nullptr,
263263
0,
264264
cbContentLength,
265-
reinterpret_cast<DWORD_PTR>(static_cast<PVOID>(this))))
265+
reinterpret_cast<DWORD_PTR>(this)))
266266
{
267267
hr = HRESULT_FROM_WIN32(GetLastError());
268268

0 commit comments

Comments
 (0)