[pygi/py3k] use AsLong instead of AS_LONG



commit 7c8e0638ba53c6771ae6adfcb0c74d3db9bfff18
Author: John (J5) Palmieri <johnp redhat com>
Date:   Thu Apr 15 14:52:41 2010 -0400

    use AsLong instead of AS_LONG

 gi/pygi-argument.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index 6690ea4..8ba42ba 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -714,7 +714,7 @@ _pygi_argument_from_object (PyObject   *object,
             }
 
             if (PyLong_Check(number)) {
-                value = PyLong_AS_LONG(number);
+                value = PyLong_AsLong(number);
             } else {
                 value = PyLong_AsUnsignedLongLong(number);
             }
@@ -736,7 +736,7 @@ _pygi_argument_from_object (PyObject   *object,
             }
 
             if (PyLong_Check(number)) {
-                value = PyLong_AS_LONG(number);
+                value = PyLong_AsLong(number);
             } else {
                 value = PyLong_AsLongLong(number);
             }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]