Fix compile warnings wrt LLDBWrapPython.cpp.

llvm-svn: 128124
This commit is contained in:
Johnny Chen 2011-03-23 00:26:08 +00:00
parent d314e810a7
commit de8241c255
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}