The call to printf expects a string argument, but the actual argument was of class...
authorvinnyrom <vinnyrom@microsoft.com>
Sat, 23 Jul 2016 11:46:50 +0000 (04:46 -0700)
committerJan Kotas <jkotas@microsoft.com>
Sat, 23 Jul 2016 11:46:50 +0000 (04:46 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/6d74076128f25499d132732075d53c02994a5406

src/coreclr/src/md/compiler/disp.cpp

index 0f0bf88..b091729 100644 (file)
@@ -152,7 +152,7 @@ Disp::DefineScope(
         BOOL fResult = SUCCEEDED(hr);
         // print out a message so people know what's happening
         printf("Defining scope for EnC using %S %s\n", 
-                            szFileNameSuffix, fResult ? "succeeded" : "failed");
+                            static_cast<LPCWSTR>(szFileNameSuffix), fResult ? "succeeded" : "failed");
 
         goto ErrExit;
     }