Commit 15faca25 authored by Magnus Hagander's avatar Magnus Hagander

Silence compiler warning on 64-bit windows build

parent f9c5d3e5
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/mmgr/aset.c,v 1.80 2009/07/21 19:53:12 tgl Exp $ * $PostgreSQL: pgsql/src/backend/utils/mmgr/aset.c,v 1.81 2010/01/01 19:57:07 mha Exp $
* *
* NOTE: * NOTE:
* This is a new (Feb. 05, 1999) implementation of the allocation set * This is a new (Feb. 05, 1999) implementation of the allocation set
...@@ -698,11 +698,11 @@ AllocSetAlloc(MemoryContext context, Size size) ...@@ -698,11 +698,11 @@ AllocSetAlloc(MemoryContext context, Size size)
* freelist than the one we need to put this chunk on. The * freelist than the one we need to put this chunk on. The
* exception is when availchunk is exactly a power of 2. * exception is when availchunk is exactly a power of 2.
*/ */
if (availchunk != (1 << (a_fidx + ALLOC_MINBITS))) if (availchunk != ((Size) 1 << (a_fidx + ALLOC_MINBITS)))
{ {
a_fidx--; a_fidx--;
Assert(a_fidx >= 0); Assert(a_fidx >= 0);
availchunk = (1 << (a_fidx + ALLOC_MINBITS)); availchunk = ((Size) 1 << (a_fidx + ALLOC_MINBITS));
} }
chunk = (AllocChunk) (block->freeptr); chunk = (AllocChunk) (block->freeptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment