Commit 4dbbef28 authored by Tom Lane's avatar Tom Lane

Suppress an integer-overflow warning.

parent 292e4c61
/* /*
* conversion functions between pg_wchar and multibyte streams. * conversion functions between pg_wchar and multibyte streams.
* Tatsuo Ishii * Tatsuo Ishii
* $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.62 2007/04/15 10:56:25 ishii Exp $ * $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.63 2007/07/12 21:17:09 tgl Exp $
* *
* WIN1250 client encoding updated by Pavel Behal * WIN1250 client encoding updated by Pavel Behal
* *
...@@ -280,7 +280,7 @@ static int pg_euctw2wchar_with_len ...@@ -280,7 +280,7 @@ static int pg_euctw2wchar_with_len
if (*from == SS2 && len >= 4) /* code set 2 */ if (*from == SS2 && len >= 4) /* code set 2 */
{ {
from++; from++;
*to = (SS2 << 24) | (*from++ << 16); *to = (((uint32) SS2) << 24) | (*from++ << 16);
*to |= *from++ << 8; *to |= *from++ << 8;
*to |= *from++; *to |= *from++;
len -= 4; len -= 4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment