]> granicus.if.org Git - python/commitdiff
Trent Mick: use size_t instead of int where appropriate (set_key()).
authorGuido van Rossum <guido@python.org>
Wed, 28 Jun 2000 21:31:10 +0000 (21:31 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 28 Jun 2000 21:31:10 +0000 (21:31 +0000)
Modules/rotormodule.c

index 3d570f7751c61e3e2e91c9d877a1cafa666483a5..d63ad74c23f1ae430cfbc1212f2ed83ad71a3f25 100644 (file)
@@ -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]);