From 9e635925c8d41f76e97f356a35509b738a3ba6f2 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 24 Jun 2026 00:36:42 -0300 Subject: [PATCH] fix: explicit cast T2A_ to const char* for clang-cl clang-cl is stricter about converting the T2A_ helper result in this expression. Cast the conversion helper result explicitly to const char* so the intended string conversion is unambiguous across MSVC and clang-cl. --- src/dev-utils/BaseException.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev-utils/BaseException.cpp b/src/dev-utils/BaseException.cpp index d3f36fcc63..b9054ec21e 100644 --- a/src/dev-utils/BaseException.cpp +++ b/src/dev-utils/BaseException.cpp @@ -69,7 +69,7 @@ void CBaseException::OutputString(LPCTSTR lpszFormat, ...) //WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), szBuf, _tcslen(szBuf), NULL, NULL); //output it to the current directory of binary - std::string output_str = textconv_helper::T2A_(szBuf); + std::string output_str = static_cast(textconv_helper::T2A_(szBuf)); *output_file << output_str; output_file->flush(); }