summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs/_codecs_tw.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/cjkcodecs/_codecs_tw.c')
-rw-r--r--Modules/cjkcodecs/_codecs_tw.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/Modules/cjkcodecs/_codecs_tw.c b/Modules/cjkcodecs/_codecs_tw.c
index 9f32bf7..c294f15 100644
--- a/Modules/cjkcodecs/_codecs_tw.c
+++ b/Modules/cjkcodecs/_codecs_tw.c
@@ -29,8 +29,10 @@ ENCODER(big5)
REQUIRE_OUTBUF(2)
- if (TRYMAP_ENC(big5, code, c));
- else return 1;
+ if (TRYMAP_ENC(big5, code, c))
+ ;
+ else
+ return 1;
OUTBYTE1(code >> 8)
OUTBYTE2(code & 0xFF)
@@ -84,9 +86,12 @@ ENCODER(cp950)
return 1;
REQUIRE_OUTBUF(2)
- if (TRYMAP_ENC(cp950ext, code, c));
- else if (TRYMAP_ENC(big5, code, c));
- else return 1;
+ if (TRYMAP_ENC(cp950ext, code, c))
+ ;
+ else if (TRYMAP_ENC(big5, code, c))
+ ;
+ else
+ return 1;
OUTBYTE1(code >> 8)
OUTBYTE2(code & 0xFF)