Skip to content
Snippets Groups Projects
Commit 355f0b97 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed warnings

parent 4b03f6ae
Branches
No related merge requests found
......@@ -73,7 +73,7 @@ namespace pybind11 { namespace detail {
const char *ptr = PyUnicode_AsUTF8AndSize(source, &size);
if (!ptr) {
return NULL;
return false;
}
/* Now try to convert into a C++ int */
......@@ -522,7 +522,7 @@ namespace pybind11 { namespace detail {
const char *ptr = PyUnicode_AsUTF8AndSize(source, &size);
if (!ptr) {
return NULL;
return false;
}
QString updateString = QString::fromUtf8(ptr, size);
......@@ -630,7 +630,7 @@ namespace pybind11 { namespace detail {
const char *ptr = PyUnicode_AsUTF8AndSize(source, &size);
if (!ptr) {
return NULL;
return false;
}
QString typeString = QString::fromUtf8(ptr, size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment