summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuriy Solodkyy <solodon4@users.noreply.github.com>2017-03-15 21:55:53 -0700
committerJan Kotas <jkotas@microsoft.com>2017-03-15 21:55:53 -0700
commit67f40646d76d914ab7f099df25768c73c4f55bad (patch)
tree95d4e098ac1cff10e5ed54a95f7952783c0c4e0d /src
parent6a10391e57742487dd2458213d61c35f31139a4c (diff)
downloadcoreclr-67f40646d76d914ab7f099df25768c73c4f55bad.tar.gz
coreclr-67f40646d76d914ab7f099df25768c73c4f55bad.tar.bz2
coreclr-67f40646d76d914ab7f099df25768c73c4f55bad.zip
Minor fix to address ?: VC conformance improvement. (#10208)
Visual C++ has made some conformance changes to conditional operator that will be available under /permissive- and which make the inference of result type of the conditional operator in these 2 places ambiguous. This happens because the class type in one of the arguments provides both: the constructor from and the conversion operator to T - LCWSTR here.
Diffstat (limited to 'src')
-rw-r--r--src/vm/dwreport.cpp2
-rw-r--r--src/vm/eventreporter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/dwreport.cpp b/src/vm/dwreport.cpp
index 95d717231a..b95c59ff8d 100644
--- a/src/vm/dwreport.cpp
+++ b/src/vm/dwreport.cpp
@@ -2468,7 +2468,7 @@ FaultReportResult DoFaultReportWorker( // Was Watson attempted, successful?
{ // Look for final '\'
pName = wcsrchr(buf, W('\\'));
// If found, skip it; if not, point to full name.
- pName = pName ? pName+1 : buf;
+ pName = pName ? pName+1 : (LPCWSTR)buf;
}
}
diff --git a/src/vm/eventreporter.cpp b/src/vm/eventreporter.cpp
index a96c525439..c73af36b55 100644
--- a/src/vm/eventreporter.cpp
+++ b/src/vm/eventreporter.cpp
@@ -64,7 +64,7 @@ EventReporter::EventReporter(EventReporterType type)
{
// If app name has a '\', consider the part after that; otherwise consider whole name.
LPCWSTR appName = wcsrchr(appPath, W('\\'));
- appName = appName ? appName+1 : appPath;
+ appName = appName ? appName+1 : (LPCWSTR)appPath;
m_Description.Append(appName);
m_Description.Append(W("\n"));
}