--- np2/common/Attic/codecnv.c 2004/01/15 06:20:42 1.4 +++ np2/common/Attic/codecnv.c 2005/02/11 21:17:21 1.5 @@ -14,7 +14,7 @@ void codecnv_sjis2euc(char *euc, UINT ec } ecnt--; while(1) { - s = (BYTE)*sjis++; + s = (UINT8)*sjis++; if (s < 0x80) { // ascii if (!s) { break; @@ -26,7 +26,7 @@ void codecnv_sjis2euc(char *euc, UINT ec *euc++ = (char)s; } else if ((((s ^ 0x20) - 0xa1) & 0xff) < 0x2f) { - c = (BYTE)*sjis++; + c = (UINT8)*sjis++; if (!c) { break; } @@ -66,7 +66,7 @@ void codecnv_euc2sjis(char *sjis, UINT s } scnt--; while(scnt) { - h = (BYTE)*euc++; + h = (UINT8)*euc++; if (h < 0x80) { // ascii if (!h) { break; @@ -75,7 +75,7 @@ void codecnv_euc2sjis(char *sjis, UINT s *sjis++ = (char)h; } else if (h == 0x8e) { - l = (BYTE)*euc++; + l = (UINT8)*euc++; if (!l) { break; } @@ -83,7 +83,7 @@ void codecnv_euc2sjis(char *sjis, UINT s *sjis++ = (char)h; } else { - l = (BYTE)*euc++; + l = (UINT8)*euc++; if ((!l) || (scnt < 2)) { break; } @@ -1260,13 +1260,13 @@ void codecnv_sjis2utf(UINT16 *utf, UINT } ucnt--; while(ucnt) { - s = (BYTE)*sjis++; + s = (UINT8)*sjis++; if (s == 0) { break; } r = utftbl[s]; if (r & 0xffff0000) { - s = (BYTE)*sjis++; + s = (UINT8)*sjis++; if (s == 0) { break; }