--- np2/common/Attic/codecnv.c 2003/10/16 17:57:16 1.1.1.1 +++ np2/common/Attic/codecnv.c 2003/11/13 17:02:25 1.2 @@ -28,7 +28,7 @@ void codecnv_sjis2euc(char *euc, UINT ec } ecnt--; while(1) { - s = *sjis++; + s = (BYTE)*sjis++; if (s < 0x80) { // ascii if (!s) { break; @@ -40,7 +40,7 @@ void codecnv_sjis2euc(char *euc, UINT ec *euc++ = (char)s; } else if ((((s ^ 0x20) - 0xa1) & 0xff) < 0x2f) { - c = *sjis++; + c = (BYTE)*sjis++; if (!c) { break; }