aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/mb/big5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/mb/big5.c')
-rw-r--r--src/backend/utils/mb/big5.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/mb/big5.c b/src/backend/utils/mb/big5.c
index 5950c5a5f04..4d89dfb6e15 100644
--- a/src/backend/utils/mb/big5.c
+++ b/src/backend/utils/mb/big5.c
@@ -7,7 +7,7 @@
*
* 1999/1/15 Tatsuo Ishii
*
- * $Id: big5.c,v 1.3 1999/05/25 22:04:45 momjian Exp $
+ * $Id: big5.c,v 1.4 1999/05/25 22:42:19 momjian Exp $
*/
#include "mb/pg_wchar.h"
@@ -218,7 +218,7 @@ static unsigned short BinarySearchRange
{
if (0 == array[mid].peer)
return 0;
- if (code >= (unsigned)0xa140)
+ if (code >= (unsigned) 0xa140)
{
/* big5 to cns */
tmp = ((code & 0xff00) - (array[mid].code & 0xff00)) >> 8;
@@ -292,7 +292,7 @@ BIG5toCNS(unsigned short big5, unsigned char *lc)
unsigned short cns = 0;
int i;
- if (big5 < (unsigned)0xc940)
+ if (big5 < (unsigned) 0xc940)
{
/* level 1 */
@@ -301,14 +301,14 @@ BIG5toCNS(unsigned short big5, unsigned char *lc)
if (b1c4[i][0] == big5)
{
*lc = LC_CNS11643_4;
- return (b1c4[i][1] | (unsigned)0x8080);
+ return (b1c4[i][1] | (unsigned) 0x8080);
}
}
if (0 < (cns = BinarySearchRange(big5Level1ToCnsPlane1, 23, big5)))
*lc = LC_CNS11643_1;
}
- else if (big5 == (unsigned)0xc94a)
+ else if (big5 == (unsigned) 0xc94a)
{
/* level 2 */
*lc = LC_CNS11643_1;