|
11 | 11 | * Portions Copyright (c) 1994, Regents of the University of California |
12 | 12 | * |
13 | 13 | * IDENTIFICATION |
14 | | - * $PostgreSQL: pgsql/src/backend/utils/mmgr/aset.c,v 1.80 2009/07/21 19:53:12 tgl Exp $ |
| 14 | + * $PostgreSQL: pgsql/src/backend/utils/mmgr/aset.c,v 1.81 2010/01/01 19:57:07 mha Exp $ |
15 | 15 | * |
16 | 16 | * NOTE: |
17 | 17 | *This is a new (Feb. 05, 1999) implementation of the allocation set |
@@ -698,11 +698,11 @@ AllocSetAlloc(MemoryContext context, Size size) |
698 | 698 | * freelist than the one we need to put this chunk on.The |
699 | 699 | * exception is when availchunk is exactly a power of 2. |
700 | 700 | */ |
701 | | -if (availchunk!= (1 << (a_fidx+ALLOC_MINBITS))) |
| 701 | +if (availchunk!= ((Size)1 << (a_fidx+ALLOC_MINBITS))) |
702 | 702 | { |
703 | 703 | a_fidx--; |
704 | 704 | Assert(a_fidx >=0); |
705 | | -availchunk= (1 << (a_fidx+ALLOC_MINBITS)); |
| 705 | +availchunk= ((Size)1 << (a_fidx+ALLOC_MINBITS)); |
706 | 706 | } |
707 | 707 |
|
708 | 708 | chunk= (AllocChunk) (block->freeptr); |
|