about summary refs log tree commit diff stats
path: root/WWW
diff options
context:
space:
mode:
Diffstat (limited to 'WWW')
-rw-r--r--WWW/Library/Implementation/SGML.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c
index 47dbc306..138ce334 100644
--- a/WWW/Library/Implementation/SGML.c
+++ b/WWW/Library/Implementation/SGML.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: SGML.c,v 1.159 2016/11/24 20:08:10 tom Exp $
+ * $LynxId: SGML.c,v 1.160 2017/01/01 00:56:18 Takeshi.Hataguchi Exp $
  *
  *			General SGML Parser code		SGML.c
  *			========================
@@ -4565,15 +4565,15 @@ unsigned char *EUC_TO_SJIS1(unsigned HI,
 			    unsigned LO,
 			    unsigned char *SJCODE)
 {
-    if (HI == 0x8E) {
-	unsigned char HI_data[2];
-	unsigned char LO_data[2];
+    unsigned char HI_data[2];
+    unsigned char LO_data[2];
 
-	HI_data[0] = UCH(HI);
-	LO_data[0] = UCH(LO);
+    HI_data[0] = UCH(HI);
+    LO_data[0] = UCH(LO);
+    if (HI == 0x8E) {
 	JISx0201TO0208_EUC(HI, LO, HI_data, LO_data);
     }
-    JIS_TO_SJIS1(UCH(HI & 0x7F), UCH(LO & 0x7F), SJCODE);
+    JIS_TO_SJIS1(UCH(HI_data[0] & 0x7F), UCH(LO_data[0] & 0x7F), SJCODE);
     return SJCODE;
 }