summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-06-28 21:31:10 (GMT)
committerGuido van Rossum <guido@python.org>2000-06-28 21:31:10 (GMT)
commite826895d4832e3e8e87d149f630275e3957fd393 (patch)
tree617de0e7fbcd85f55cddb544c07fa7828f18399c /Modules
parent26418a90f0990b567931c4e2ea408e72930a40c8 (diff)
downloadcpython-e826895d4832e3e8e87d149f630275e3957fd393.zip
cpython-e826895d4832e3e8e87d149f630275e3957fd393.tar.gz
cpython-e826895d4832e3e8e87d149f630275e3957fd393.tar.bz2
Trent Mick: use size_t instead of int where appropriate (set_key()).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/rotormodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c
index 3d570f7..d63ad74 100644
--- a/Modules/rotormodule.c
+++ b/Modules/rotormodule.c
@@ -147,8 +147,8 @@ set_key(r, key)
char *key;
{
unsigned long k1=995, k2=576, k3=767, k4=671, k5=463;
- int i;
- int len = strlen(key);
+ size_t i;
+ size_t len = strlen(key);
for (i = 0; i < len; i++) {
unsigned short ki = Py_CHARMASK(key[i]);