]> granicus.if.org Git - python/commitdiff
Added include for limits.h
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 22 Aug 2000 21:51:22 +0000 (21:51 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 22 Aug 2000 21:51:22 +0000 (21:51 +0000)
Objects/fileobject.c
Objects/listobject.c

index dd2ede09d70213a238e9f123b98d15a233ea7bfb..a7391e6ba8d020fc426dcb4249a3c81539acbc26 100644 (file)
@@ -13,6 +13,10 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #include "Python.h"
 #include "structmember.h"
 
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
 #ifndef DONT_HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif /* DONT_HAVE_SYS_TYPES_H */
index 2b016eda199fc2629eb8afc30cabb097f7884298..721a4f2ded0fa03a77e5161191536d88b7307489 100644 (file)
@@ -17,6 +17,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #else
 #include <sys/types.h>         /* For size_t */
 #endif
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
 
 #define ROUNDUP(n, PyTryBlock) \
        ((((n)+(PyTryBlock)-1)/(PyTryBlock))*(PyTryBlock))
@@ -258,6 +261,7 @@ static int
 list_compare(PyListObject *v, PyListObject *w)
 {
        int i;
+       
        for (i = 0; i < v->ob_size && i < w->ob_size; i++) {
                int cmp = PyObject_Compare(v->ob_item[i], w->ob_item[i]);
                if (cmp != 0)