Mercurial > cpython-lru_cache-weakref
diff Python/pyarena.c @ 37606:f448d0075691 legacy-trunk
more low-hanging fruit to make code compile under a C++ compiler. Not
entirely happy with the two new VISIT macros in compile.c, but I
couldn't see a better approach.
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Tue, 11 Apr 2006 12:01:56 +0000 |
| parents | c9a6273775b5 |
| children | 751f7c79b5fd |
line wrap: on
line diff
--- a/Python/pyarena.c Tue Apr 11 11:12:43 2006 +0000 +++ b/Python/pyarena.c Tue Apr 11 12:01:56 2006 +0000 @@ -105,14 +105,14 @@ the default block, allocate a one-off block that is exactly the right size. */ /* TODO(jhylton): Think about space waste at end of block */ - block *new = block_new( + block *newbl = block_new( size < DEFAULT_BLOCK_SIZE ? DEFAULT_BLOCK_SIZE : size); - if (!new) + if (!newbl) return NULL; assert(!b->ab_next); - b->ab_next = new; - b = new; + b->ab_next = newbl; + b = newbl; } assert(b->ab_offset + size <= b->ab_size);
