Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15faca2

Browse files
committed
Silence compiler warning on 64-bit windows build
1 parentf9c5d3e commit15faca2

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)

[8]ページ先頭

©2009-2025 Movatter.jp