Commit 355f0b97 authored by Jan Möbius's avatar Jan Möbius

Fixed warnings

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