summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs/_codecs_jp.c
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2006-03-04 16:08:19 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2006-03-04 16:08:19 (GMT)
commit4b96c1384e008218bdfeb9e271a094b1ab8484d3 (patch)
tree8ca29d17d54e6c671408e427279a7acc3082a4bf /Modules/cjkcodecs/_codecs_jp.c
parentad9afcf213f5a69d1a43616cbd445126e8a7d6cb (diff)
downloadcpython-4b96c1384e008218bdfeb9e271a094b1ab8484d3.zip
cpython-4b96c1384e008218bdfeb9e271a094b1ab8484d3.tar.gz
cpython-4b96c1384e008218bdfeb9e271a094b1ab8484d3.tar.bz2
- Modernize code to use Py_ssize_t more intensively.
- Do some minor code clean-ups.
Diffstat (limited to 'Modules/cjkcodecs/_codecs_jp.c')
-rw-r--r--Modules/cjkcodecs/_codecs_jp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/cjkcodecs/_codecs_jp.c b/Modules/cjkcodecs/_codecs_jp.c
index 860a979..9b8d324 100644
--- a/Modules/cjkcodecs/_codecs_jp.c
+++ b/Modules/cjkcodecs/_codecs_jp.c
@@ -2,7 +2,6 @@
* _codecs_jp.c: Codecs collection for Japanese encodings
*
* Written by Hye-Shik Chang <perky@FreeBSD.org>
- * $CJKCodecs: _codecs_jp.c,v 1.14 2004/07/07 17:54:47 perky Exp $
*/
#define USING_BINARY_PAIR_SEARCH
@@ -150,7 +149,7 @@ ENCODER(euc_jis_2004)
while (inleft > 0) {
ucs4_t c = IN1;
DBCHAR code;
- int insize;
+ Py_ssize_t insize;
if (c < 0x80) {
WRITE1(c)
@@ -545,7 +544,7 @@ ENCODER(shift_jis_2004)
ucs4_t c = IN1;
DBCHAR code = NOCHAR;
int c1, c2;
- size_t insize;
+ Py_ssize_t insize;
JISX0201_ENCODE(c, code)
else DECODE_SURROGATE(c)