summaryrefslogtreecommitdiff
path: root/pyuno/source/loader
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:18:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:18:37 +0100
commitbc3e970641147a3b3b599f019aeb409cef1d44b2 (patch)
tree48660f3fd6a177143461740cd98da645117af5da /pyuno/source/loader
parentfe3924a3677ff5e3aa58bc0c7ec0310ad49acafd (diff)
More loplugin:cstylecast: pyuno
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I11e4fde47c5da601e4ffeada31083c3bdb4286f9
Diffstat (limited to 'pyuno/source/loader')
-rw-r--r--pyuno/source/loader/pyuno_loader.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx
index 437bac4eb455..559dc64d1d99 100644
--- a/pyuno/source/loader/pyuno_loader.cxx
+++ b/pyuno/source/loader/pyuno_loader.cxx
@@ -126,7 +126,7 @@ static void setPythonHome ( const OUString & pythonHome )
// static because Py_SetPythonHome just copies the "wide" pointer
static wchar_t wide[PATH_MAX + 1];
size_t len = mbstowcs(wide, o.pData->buffer, PATH_MAX + 1);
- if(len == (size_t)-1)
+ if(len == size_t(-1))
{
PyErr_SetString(PyExc_SystemError, "invalid multibyte sequence in python home path");
return;