@@ -134,7 +134,7 @@ static void
134134reduce (dir )
135135 char * dir ;
136136{
137- int i = strlen (dir );
137+ size_t i = strlen (dir );
138138 while (i > 0 && !is_sep (dir [i ]))
139139 -- i ;
140140 dir [i ] = '\0' ;
@@ -172,7 +172,7 @@ join(buffer, stuff)
172172 char * buffer ;
173173 char * stuff ;
174174{
175- int n , k ;
175+ size_t n , k ;
176176 if (is_sep (stuff [0 ]))
177177 n = 0 ;
178178 else {
@@ -207,7 +207,6 @@ search_for_prefix(argv0_path, landmark)
207207 char * argv0_path ;
208208 char * landmark ;
209209{
210-
211210 /* Search from argv0_path, until landmark is found */
212211 strcpy (prefix , argv0_path );
213212 do {
@@ -244,7 +243,7 @@ getpythonregpath(HKEY keyBase, int skipcore)
244243 TCHAR * dataBuf = NULL ;
245244 static const TCHAR keyPrefix [] = _T ("Software\\Python\\PythonCore\\" );
246245 static const TCHAR keySuffix [] = _T ("\\PythonPath" );
247- int versionLen ;
246+ size_t versionLen ;
248247 DWORD index ;
249248 TCHAR * keyBuf = NULL ;
250249 TCHAR * keyBufPtr ;
@@ -402,7 +401,7 @@ get_progpath()
402401 char * delim = strchr (path , DELIM );
403402
404403 if (delim ) {
405- int len = delim - path ;
404+ size_t len = delim - path ;
406405 strncpy (progpath , path , len );
407406 * (progpath + len ) = '\0' ;
408407 }
@@ -429,7 +428,7 @@ calculate_path()
429428{
430429 char argv0_path [MAXPATHLEN + 1 ];
431430 char * buf ;
432- int bufsz ;
431+ size_t bufsz ;
433432 char * pythonhome = Py_GetPythonHome ();
434433 char * envpath = getenv ("PYTHONPATH" );
435434
@@ -554,7 +553,7 @@ calculate_path()
554553 else {
555554 char * p = PYTHONPATH ;
556555 char * q ;
557- int n ;
556+ size_t n ;
558557 for (;;) {
559558 q = strchr (p , DELIM );
560559 if (q == NULL )
0 commit comments