[Python-checkins] CVS: python/dist/src/Modules rotormodule.c,2.23,2.24

Guido van Rossum python-dev@python.org
Wed, 28 Jun 2000 14:31:13 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv4104

Modified Files:
	rotormodule.c 
Log Message:
Trent Mick: use size_t instead of int where appropriate (set_key()).


Index: rotormodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/rotormodule.c,v
retrieving revision 2.23
retrieving revision 2.24
diff -C2 -r2.23 -r2.24
*** rotormodule.c	2000/05/03 23:44:33	2.23
--- rotormodule.c	2000/06/28 21:31:10	2.24
***************
*** 148,153 ****
  {
  	unsigned long k1=995, k2=576, k3=767, k4=671, k5=463;
! 	int i;
! 	int len = strlen(key);
  
  	for (i = 0; i < len; i++) {
--- 148,153 ----
  {
  	unsigned long k1=995, k2=576, k3=767, k4=671, k5=463;
! 	size_t i;
! 	size_t len = strlen(key);
  
  	for (i = 0; i < len; i++) {