From: vinnyrom Date: Sat, 23 Jul 2016 11:46:50 +0000 (-0700) Subject: The call to printf expects a string argument, but the actual argument was of class... X-Git-Tag: submit/tizen/20210909.063632~11030^2~9814 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=831805cc69b30c7d2e9af40f4912ebe4ba8ecc0f;p=platform%2Fupstream%2Fdotnet%2Fruntime.git The call to printf expects a string argument, but the actual argument was of class type 'PathString'. (dotnet/coreclr#6422) Commit migrated from https://github.com/dotnet/coreclr/commit/6d74076128f25499d132732075d53c02994a5406 --- diff --git a/src/coreclr/src/md/compiler/disp.cpp b/src/coreclr/src/md/compiler/disp.cpp index 0f0bf88..b091729 100644 --- a/src/coreclr/src/md/compiler/disp.cpp +++ b/src/coreclr/src/md/compiler/disp.cpp @@ -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(szFileNameSuffix), fResult ? "succeeded" : "failed"); goto ErrExit; }