Commits

Anthony Tuininga committed 025d4d8

Small tweaks to eliminate compiler errors for MSVC.

Comments (0)

Files changed (2)

source/bases/Common.c

     const char *path,                   // path to calculate dir name for
     PyObject **dirName)                 // directory name (OUT)
 {
-    int i;
+    size_t i;
 
     for (i = strlen(path); i > 0 && path[i] != SEP; --i);
     *dirName = cxString_FromStringAndSize(path, i);

source/bases/Win32Service.c

     const char *fileName)		// name of file for defaults
 {
     char defaultLogFileName[PATH_MAX + 1], logFileName[PATH_MAX + 1];
-    unsigned size, logLevel, maxFiles, maxFileSize;
+    unsigned logLevel, maxFiles, maxFileSize;
     char *ptr, prefix[100];
+    size_t size;
 
     // determine the default log file name and ini file name
     ptr = strrchr(fileName, '.');