Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 802:3d6541a2eca5 legacy-trunk
Arg of cmp_outcome becomes an int for portability to the Mac
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 06 Apr 1992 13:24:57 +0000 |
| parents | f565cf7f9aba |
| children | f08d34499269 |
line wrap: on
line diff
--- a/Python/ceval.c Mon Apr 06 12:36:19 1992 +0000 +++ b/Python/ceval.c Mon Apr 06 13:24:57 1992 +0000 @@ -74,7 +74,7 @@ static int assign_slice PROTO((object *, object *, object *, object *)); static int cmp_exception PROTO((object *, object *)); static int cmp_member PROTO((object *, object *)); -static object *cmp_outcome PROTO((enum cmp_op, object *, object *)); +static object *cmp_outcome PROTO((int, object *, object *)); static int import_from PROTO((object *, object *, object *)); static object *build_class PROTO((object *, object *)); @@ -928,7 +928,7 @@ case COMPARE_OP: w = POP(); v = POP(); - x = cmp_outcome((enum cmp_op)oparg, v, w); + x = cmp_outcome(oparg, v, w); DECREF(v); DECREF(w); PUSH(x); @@ -1892,7 +1892,7 @@ static object * cmp_outcome(op, v, w) - enum cmp_op op; + int op; register object *v; register object *w; {
