Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 15faca2

Browse files
committed
Silence compiler warning on 64-bit windows build
1 parent f9c5d3e commit 15faca2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/utils/mmgr/aset.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Portions Copyright (c) 1994, Regents of the University of California
1212
*
1313
* 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 $
1515
*
1616
* NOTE:
1717
* This is a new (Feb. 05, 1999) implementation of the allocation set
@@ -698,11 +698,11 @@ AllocSetAlloc(MemoryContext context, Size size)
698698
* freelist than the one we need to put this chunk on. The
699699
* exception is when availchunk is exactly a power of 2.
700700
*/
701-
if (availchunk != (1 << (a_fidx + ALLOC_MINBITS)))
701+
if (availchunk != ((Size) 1 << (a_fidx + ALLOC_MINBITS)))
702702
{
703703
a_fidx--;
704704
Assert(a_fidx >= 0);
705-
availchunk = (1 << (a_fidx + ALLOC_MINBITS));
705+
availchunk = ((Size) 1 << (a_fidx + ALLOC_MINBITS));
706706
}
707707

708708
chunk = (AllocChunk) (block->freeptr);

0 commit comments

Comments
 (0)