[Python-checkins] r42394 - python/trunk/PC/getpathp.c
tim.peters
python-checkins at python.org
Thu Feb 16 01:35:07 CET 2006
Author: tim.peters
Date: Thu Feb 16 01:35:06 2006
New Revision: 42394
Modified:
python/trunk/PC/getpathp.c
Log:
getpythonregpath(): Squash compiler warning about
mixing signed and unsigned types in comparison.
Relatedly, `dataSize` is declared as DWORD, not as
int, so change relevant cast from (int) to (DWORD).
Modified: python/trunk/PC/getpathp.c
==============================================================================
--- python/trunk/PC/getpathp.c (original)
+++ python/trunk/PC/getpathp.c Thu Feb 16 01:35:06 2006
@@ -306,8 +306,8 @@
Py_ssize_t len = _tcslen(ppPaths[index]);
_tcsncpy(szCur, ppPaths[index], len);
szCur += len;
- assert(dataSize > len);
- dataSize -= (int)len;
+ assert(dataSize > (DWORD)len);
+ dataSize -= (DWORD)len;
}
}
if (skipcore)
More information about the Python-checkins
mailing list