From 4c9ea1423540ef793107dd64097335b81a9baa59 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Mon, 18 May 2020 13:17:24 +0800 Subject: Fix compilation warning --- src/pyinterp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pyinterp.cc') diff --git a/src/pyinterp.cc b/src/pyinterp.cc index 72995eb6..25779d20 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -157,7 +157,7 @@ void python_interpreter_t::initialize() // interpreter with Py_Finalize when embedded. Py_UnbufferedStdioFlag = 1; // PyImport_AppendInittab docs: "This should be called before Py_Initialize()". - PyImport_AppendInittab((char*)"ledger", PyInit_ledger); + PyImport_AppendInittab((const char*)"ledger", PyInit_ledger); #endif Py_Initialize(); -- cgit v1.2.3