Fix compile warnings wrt LLDBWrapPython.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@128124 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/lldb.swig b/scripts/lldb.swig
index c34e7e9..c97d88a 100644
--- a/scripts/lldb.swig
+++ b/scripts/lldb.swig
@@ -63,7 +63,7 @@
return NULL;
}
$2 = PyInt_AsLong($input);
- if ($2 < 0) {
+ if ($2 <= 0) {
PyErr_SetString(PyExc_ValueError, "Positive integer expected");
return NULL;
}
@@ -98,7 +98,7 @@
return NULL;
}
$2 = PyInt_AsLong($input);
- if ($2 < 0) {
+ if ($2 <= 0) {
PyErr_SetString(PyExc_ValueError, "Positive integer expected");
return NULL;
}