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)
src/md/compiler/disp.cpp

index 0f0bf88e6db26692696347938c9189819467cfe9..b091729744d75441c74ae3afef0f5a2208c19f1a 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;
     }