diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2000-08-22 21:51:22 +0000 |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-08-22 21:51:22 +0000 |
| commit | e979160f5eedeaeb69b74e8ad20d6d9f141ad337 (patch) | |
| tree | 9e6b98f6d225ec0592de6ebaee3bd79252b9de77 /Objects | |
| parent | 6c091c8ff2de5ba2249705fe9e963c364b39186b (diff) | |
| download | cpython-git-e979160f5eedeaeb69b74e8ad20d6d9f141ad337.tar.gz | |
Added include for limits.h
Diffstat (limited to 'Objects')
| -rw-r--r-- | Objects/fileobject.c | 4 | ||||
| -rw-r--r-- | Objects/listobject.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index dd2ede09d7..a7391e6ba8 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -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 */ diff --git a/Objects/listobject.c b/Objects/listobject.c index 2b016eda19..721a4f2ded 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -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) |
