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

Commit 4dbbef2

Browse files
committed
Suppress an integer-overflow warning.
1 parent 292e4c6 commit 4dbbef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/mb/wchar.c

+2-2
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 int pg_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)