forked from OSchip/llvm-project
Fix compile warnings wrt LLDBWrapPython.cpp.
llvm-svn: 128124
This commit is contained in:
parent
d314e810a7
commit
de8241c255
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue