summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-05-08 09:53:31 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-05-09 20:40:29 +0200
commitfb0764c31c895de127d70c1f7ded8fefd14bae04 (patch)
tree7929414a9dddc3a5c64b3ee56d136cb27bc88940 /pyuno
parentd6c7f7f828905301cefb1cb747b5b93daf337015 (diff)
Fix simple warning (explicit cast in char*)
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/loader/pyuno_loader.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx
index 15d068483..b5ef002fb 100644
--- a/pyuno/source/loader/pyuno_loader.cxx
+++ b/pyuno/source/loader/pyuno_loader.cxx
@@ -197,9 +197,9 @@ Reference< XInterface > CreateInstance( const Reference< XComponentContext > & c
if( pythonPath.getLength() )
prependPythonPath( pythonPath );
#if PY_MAJOR_VERSION >= 3
- PyImport_AppendInittab( "pyuno", PyInit_pyuno );
+ PyImport_AppendInittab( (char*)"pyuno", PyInit_pyuno );
#else
- PyImport_AppendInittab( "pyuno", initpyuno );
+ PyImport_AppendInittab( (char*)"pyuno", initpyuno );
#endif
// initialize python
Py_Initialize();