[Lldb-commits] [lldb] r128124 - /lldb/trunk/scripts/lldb.swig

Johnny Chen johnny.chen at apple.com
Tue Mar 22 17:26:08 PDT 2011


Author: johnny
Date: Tue Mar 22 19:26:08 2011
New Revision: 128124

URL: http://llvm.org/viewvc/llvm-project?rev=128124&view=rev
Log:
Fix compile warnings wrt LLDBWrapPython.cpp.

Modified:
    lldb/trunk/scripts/lldb.swig

Modified: lldb/trunk/scripts/lldb.swig
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/lldb.swig?rev=128124&r1=128123&r2=128124&view=diff
==============================================================================
--- lldb/trunk/scripts/lldb.swig (original)
+++ lldb/trunk/scripts/lldb.swig Tue Mar 22 19:26:08 2011
@@ -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;
    }





More information about the lldb-commits mailing list