8000 added a char* cast at line 95 and solve compilation error · ProfessorX737/matplotlib-cpp@ce69854 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce69854

Browse files
ValerioMagnagolava
authored andcommitted
added a char* cast at line 95 and solve compilation error
1 parent c9b777a commit ce69854

File tree< 8000 /h2>

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matplotlibcpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace matplotlibcpp {
9292
// matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
9393
// or matplotlib.backends is imported for the first time
9494
if (!s_backend.empty()) {
95-
PyObject_CallMethod(matplotlib, "use", "s", s_backend.c_str());
95+
PyObject_CallMethod(matplotlib, const_cast<char*>("use"), const_cast<char*>("s"), s_backend.c_str());
9696
}
9797

9898
PyObject* pymod = PyImport_Import(pyplotname);

0 commit comments

Comments
 (0)
0