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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy