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

Commit4dbbef2

Browse files
committed
Suppress an integer-overflow warning.
1 parent292e4c6 commit4dbbef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/mb/wchar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* conversion functions between pg_wchar and multibyte streams.
33
* Tatsuo Ishii
4-
* $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.62 2007/04/15 10:56:25 ishii Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.63 2007/07/12 21:17:09 tgl Exp $
55
*
66
* WIN1250 client encoding updated by Pavel Behal
77
*
@@ -280,7 +280,7 @@ static intpg_euctw2wchar_with_len
280280
if (*from==SS2&&len >=4)/* code set 2 */
281281
{
282282
from++;
283-
*to= (SS2 <<24) | (*from++ <<16);
283+
*to= (((uint32)SS2) <<24) | (*from++ <<16);
284284
*to |=*from++ <<8;
285285
*to |=*from++;
286286
len-=4;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp