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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy