diff options
author | Aidan Dodds <aidan@codeplay.com> | 2016-01-28 13:05:21 +0000 |
---|---|---|
committer | Aidan Dodds <aidan@codeplay.com> | 2016-01-28 13:05:21 +0000 |
commit | bdc52ef38b677543dd3b4279ec82c188632e07e2 (patch) | |
tree | dc74596ff82554152146e1e30f72907fa0134ea4 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 26311f00e86085dd6bd3ed0c10cfcbb6f5f31271 (diff) | |
download | bcm5719-llvm-bdc52ef38b677543dd3b4279ec82c188632e07e2.tar.gz bcm5719-llvm-bdc52ef38b677543dd3b4279ec82c188632e07e2.zip |
Fix const cast error for MSVC2015 build.
The Visual Studio 2015 build was failing with the following error:
error C2440: 'initializing': cannot convert from 'const char [12]' to 'char *'
This should fix the problem by initializing a non const char array, instead of taking a pointer to const static data.
llvm-svn: 259042
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 19ad86db240..3a11b83633a 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -146,7 +146,7 @@ private: size_t size = 0; static wchar_t *g_python_home = Py_DecodeLocale(LLDB_PYTHON_HOME, &size); #else - static char *g_python_home = LLDB_PYTHON_HOME; + static char g_python_home[] = LLDB_PYTHON_HOME; #endif Py_SetPythonHome(g_python_home); #endif |